aboutsummaryrefslogtreecommitdiff
path: root/unittests/internaltests.py
diff options
context:
space:
mode:
Diffstat (limited to 'unittests/internaltests.py')
-rw-r--r--unittests/internaltests.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/unittests/internaltests.py b/unittests/internaltests.py
index f22adb2..672a5a0 100644
--- a/unittests/internaltests.py
+++ b/unittests/internaltests.py
@@ -453,7 +453,7 @@ class InternalTests(unittest.TestCase):
# Can not be used as context manager because we need to
# open it a second time and this is not possible on
# Windows.
- configfile = tempfile.NamedTemporaryFile(mode='w+', delete=False)
+ configfile = tempfile.NamedTemporaryFile(mode='w+', delete=False, encoding='utf-8')
configfilename = configfile.name
config.write(configfile)
configfile.flush()
@@ -469,7 +469,7 @@ class InternalTests(unittest.TestCase):
'needs_exe_wrapper': 'true' if desired_value else 'false'
}
- configfile = tempfile.NamedTemporaryFile(mode='w+', delete=False)
+ configfile = tempfile.NamedTemporaryFile(mode='w+', delete=False, encoding='utf-8')
configfilename = configfile.name
config.write(configfile)
configfile.close()