diff options
Diffstat (limited to 'packaging-tools/tests/test_installer_utils.py')
-rw-r--r-- | packaging-tools/tests/test_installer_utils.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packaging-tools/tests/test_installer_utils.py b/packaging-tools/tests/test_installer_utils.py index 11ce56f3a..d22a174ac 100644 --- a/packaging-tools/tests/test_installer_utils.py +++ b/packaging-tools/tests/test_installer_utils.py @@ -96,7 +96,7 @@ class TestInstallerUtils(unittest.TestCase): # create tmp file tempFileName = "foobar.txt" tempFilePath = os.path.join(absoluteTempPath, tempFileName) - with open(tempFilePath, 'w+') as f: + with open(tempFilePath, 'w+', encoding="utf-8") as f: f.write("\n") self.assertTrue(os.path.isfile(tempFilePath)) |