summaryrefslogtreecommitdiff
path: root/tests/scanner/test_maintransformer.py
diff options
context:
space:
mode:
authorChristoph Reiter <reiter.christoph@gmail.com>2020-11-07 18:55:48 +0000
committerChristoph Reiter <reiter.christoph@gmail.com>2020-11-07 18:55:48 +0000
commit10b1a869da09d260e54b6f28a0d2c0e3015deee4 (patch)
tree51408ccc16a4a486c7d18254b41d9c6b2b3f9638 /tests/scanner/test_maintransformer.py
parent579e84b92cf3ec9cb10d9b9b0683181b05569cb1 (diff)
parentdd378ee46082862f711629d40ed33f944d1e3259 (diff)
downloadgobject-introspection-10b1a869da09d260e54b6f28a0d2c0e3015deee4.tar.gz
Merge branch 'open-cleanup' into 'master'
open cleanup: explicit encoding, close fds See merge request GNOME/gobject-introspection!250
Diffstat (limited to 'tests/scanner/test_maintransformer.py')
-rw-r--r--tests/scanner/test_maintransformer.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/scanner/test_maintransformer.py b/tests/scanner/test_maintransformer.py
index abf3ee73..f0e2d629 100644
--- a/tests/scanner/test_maintransformer.py
+++ b/tests/scanner/test_maintransformer.py
@@ -16,7 +16,7 @@ def create_scanner_from_source_string(source):
tmp_fd, tmp_name = tempfile.mkstemp(suffix='.h', text=True)
try:
- with os.fdopen(tmp_fd, 'wt') as file:
+ with os.fdopen(tmp_fd, 'w', encoding='utf-8') as file:
file.write(source)
ss.parse_files([tmp_name])
finally: