diff options
author | Christoph Reiter <reiter.christoph@gmail.com> | 2020-11-07 18:55:48 +0000 |
---|---|---|
committer | Christoph Reiter <reiter.christoph@gmail.com> | 2020-11-07 18:55:48 +0000 |
commit | 10b1a869da09d260e54b6f28a0d2c0e3015deee4 (patch) | |
tree | 51408ccc16a4a486c7d18254b41d9c6b2b3f9638 /tests/scanner/test_transformer.py | |
parent | 579e84b92cf3ec9cb10d9b9b0683181b05569cb1 (diff) | |
parent | dd378ee46082862f711629d40ed33f944d1e3259 (diff) | |
download | gobject-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_transformer.py')
-rw-r--r-- | tests/scanner/test_transformer.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/scanner/test_transformer.py b/tests/scanner/test_transformer.py index c6fbf4e7..3feed441 100644 --- a/tests/scanner/test_transformer.py +++ b/tests/scanner/test_transformer.py @@ -18,7 +18,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: |