diff --git a/tests/Utils.py b/tests/Utils.py index 3f5fbfa..494c9d2 100644 --- a/tests/Utils.py +++ b/tests/Utils.py @@ -59,7 +59,7 @@ def makeTempFilename(): def makeTempFile(text): """ Create a temporary file with the provided text.""" - tmp = tempfile.NamedTemporaryFile(prefix='shine-test-') + tmp = tempfile.NamedTemporaryFile(prefix='shine-test-', mode='w') tmp.write(text) tmp.flush() return tmp