From 8d63c8d47b9edd8ac2f0b395b2fa0ae5f571252d Mon Sep 17 00:00:00 2001 From: "Jason R. Coombs" Date: Tue, 4 Jun 2024 02:36:28 -0400 Subject: gh-106531: Apply changes from importlib_resources 6.3.2 (#117054) Apply changes from importlib_resources 6.3.2. --- Lib/test/test_importlib/resources/test_open.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'Lib/test/test_importlib/resources/test_open.py') diff --git a/Lib/test/test_importlib/resources/test_open.py b/Lib/test/test_importlib/resources/test_open.py index 86becb4bfaa..3b6b2142ef4 100644 --- a/Lib/test/test_importlib/resources/test_open.py +++ b/Lib/test/test_importlib/resources/test_open.py @@ -24,7 +24,7 @@ class OpenTests: target = resources.files(self.data) / 'binary.file' with target.open('rb') as fp: result = fp.read() - self.assertEqual(result, b'\x00\x01\x02\x03') + self.assertEqual(result, bytes(range(4))) def test_open_text_default_encoding(self): target = resources.files(self.data) / 'utf-8.file' @@ -81,5 +81,9 @@ class OpenZipTests(OpenTests, util.ZipSetup, unittest.TestCase): pass +class OpenNamespaceZipTests(OpenTests, util.ZipSetup, unittest.TestCase): + ZIP_MODULE = 'namespacedata01' + + if __name__ == '__main__': unittest.main() -- cgit v1.2.3