Skip to content

Commit

Permalink
Expand ModuleFiles and ImplicitContextFiles tests to include zip files.
Browse files Browse the repository at this point in the history
Module files zip tests is marked as xfail due to the issue reported in python/cpython#121735.
  • Loading branch information
jaraco committed Aug 14, 2024
1 parent d873fca commit 73bc56a
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions importlib_resources/tests/test_files.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,12 @@ class ModuleFilesDiskTests(DirectSpec, util.DiskSetup, ModulesFiles, unittest.Te
pass


class ModuleFilesZipTests(DirectSpec, util.ZipSetup, ModulesFiles, unittest.TestCase):
@__import__('pytest').mark.xfail(reason="python/cpython#121735")
def test_module_resources(self):
super().test_module_resources()


class ImplicitContextFiles:
spec = {
'somepkg': {
Expand All @@ -117,5 +123,11 @@ class ImplicitContextFilesDiskTests(
pass


class ImplicitContextFilesZipTests(
DirectSpec, util.ZipSetup, ImplicitContextFiles, unittest.TestCase
):
pass


if __name__ == '__main__':
unittest.main()

0 comments on commit 73bc56a

Please sign in to comment.