Skip to content

Commit 168f617

Browse files
committed
Updated the contents of the binary files in the subdirectories so there's less chance of accidentally matching one for the other.
1 parent 6c9b190 commit 168f617

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed
Binary file not shown.
Binary file not shown.

importlib_resources/tests/test_read.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,13 +60,13 @@ class ReadZipTests(ReadTests, util.ZipSetup, unittest.TestCase):
6060
def test_read_submodule_resource(self):
6161
submodule = import_module('data01.subdirectory')
6262
result = resources.files(submodule).joinpath('binary.file').read_bytes()
63-
self.assertEqual(result, b'\0\1\2\3')
63+
self.assertEqual(result, b'\4\5\6\x07')
6464

6565
def test_read_submodule_resource_by_name(self):
6666
result = (
6767
resources.files('data01.subdirectory').joinpath('binary.file').read_bytes()
6868
)
69-
self.assertEqual(result, b'\0\1\2\3')
69+
self.assertEqual(result, b'\4\5\6\x07')
7070

7171

7272
class ReadNamespaceTests(ReadTests, unittest.TestCase):
@@ -82,15 +82,15 @@ class ReadNamespaceZipTests(ReadTests, util.ZipSetup, unittest.TestCase):
8282
def test_read_submodule_resource(self):
8383
submodule = import_module('namespacedata01.subdirectory')
8484
result = resources.files(submodule).joinpath('binary.file').read_bytes()
85-
self.assertEqual(result, b'\0\1\2\3')
85+
self.assertEqual(result, b'\x0c\x0d\x0e\x0f')
8686

8787
def test_read_submodule_resource_by_name(self):
8888
result = (
8989
resources.files('namespacedata01.subdirectory')
9090
.joinpath('binary.file')
9191
.read_bytes()
9292
)
93-
self.assertEqual(result, b'\0\1\2\3')
93+
self.assertEqual(result, b'\x0c\x0d\x0e\x0f')
9494

9595

9696
if __name__ == '__main__':

0 commit comments

Comments
 (0)