aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/test_create_app.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_create_app.py b/tests/test_create_app.py
index 32f5994..5777caa 100644
--- a/tests/test_create_app.py
+++ b/tests/test_create_app.py
@@ -31,7 +31,7 @@ def test_create_app_to_file(mocker):
31 (fd, filename) = tempfile.mkstemp(text=True) 31 (fd, filename) = tempfile.mkstemp(text=True)
32 32
33 test_create_app(mocker, to_file=filename) 33 test_create_app(mocker, to_file=filename)
34 with open(fd) as f: 34 with os.fdopen(fd) as f:
35 assert f.read() == "foo\nbar\n" 35 assert f.read() == "foo\nbar\n"
36 36
37 os.remove(filename) 37 os.remove(filename)
Powered by cgit v1.2.3 (git 2.41.0)