bpo-32248: Fix test_importlib.test_open() (#5213) · python/cpython@3a0cf93 (original) (raw)

Original file line number Diff line number Diff line change
@@ -19,9 +19,9 @@ def execute(self, package, path):
19 19
20 20 class OpenTests:
21 21 def test_open_binary(self):
22 -with resources.open_binary(self.data, 'utf-8.file') as fp:
22 +with resources.open_binary(self.data, 'binary.file') as fp:
23 23 result = fp.read()
24 -self.assertEqual(result, b'Hello, UTF-8 world!\n')
24 +self.assertEqual(result, b'\x00\x01\x02\x03')
25 25
26 26 def test_open_text_default_encoding(self):
27 27 with resources.open_text(self.data, 'utf-8.file') as fp: