aboutsummaryrefslogtreecommitdiffstats
path: root/packaging-tools/tests/test_content_cleaner.py
diff options
context:
space:
mode:
Diffstat (limited to 'packaging-tools/tests/test_content_cleaner.py')
-rw-r--r--packaging-tools/tests/test_content_cleaner.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/packaging-tools/tests/test_content_cleaner.py b/packaging-tools/tests/test_content_cleaner.py
index 898f04030..5e59e6ed4 100644
--- a/packaging-tools/tests/test_content_cleaner.py
+++ b/packaging-tools/tests/test_content_cleaner.py
@@ -47,7 +47,7 @@ class TestContentCleaner(unittest.TestCase):
test_path = os.path.join(test_base_dir, test_content_path)
os.makedirs(os.path.dirname(test_path), exist_ok=True)
if not test_path.endswith("/"):
- with open(test_path, "w+") as f:
+ with open(test_path, "w+", encoding="utf-8") as f:
f.write("")
@data(