We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a8c2ead commit 297e1c3Copy full SHA for 297e1c3
importlib_resources/tests/test_files.py
@@ -15,7 +15,7 @@ def test_read_bytes(self):
15
16
def test_read_text(self):
17
files = resources.files(self.data)
18
- actual = files.joinpath('utf-8.file').read_text()
+ actual = files.joinpath('utf-8.file').read_text(encoding='utf-8')
19
assert actual == 'Hello, UTF-8 world!\n'
20
21
@unittest.skipUnless(
0 commit comments