From 8d7b22ed143d49eaa2cb2cac7671afab6012d037 Mon Sep 17 00:00:00 2001 From: "Jason R. Coombs" Date: Tue, 12 Sep 2023 15:42:35 -0400 Subject: [PATCH] Add xfail tests for namespace packages in a zip, capturing missed expectation reported in python/importlib_resources#287. --- importlib_resources/tests/test_resource.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/importlib_resources/tests/test_resource.py b/importlib_resources/tests/test_resource.py index 4036805..de7d734 100644 --- a/importlib_resources/tests/test_resource.py +++ b/importlib_resources/tests/test_resource.py @@ -209,5 +209,13 @@ def tearDownClass(cls): sys.path.remove(cls.site_dir) +class ResourceFromNamespaceZipTests( + util.ZipSetupBase, + ResourceFromNamespaceTests, + unittest.TestCase, +): + ZIP_MODULE = 'namespacedata01' + + if __name__ == '__main__': unittest.main()