Skip to content

Commit 34ed4f7

Browse files
committed
Expand ModuleFiles and ImplicitContextFiles tests to include zip files.
Module files zip tests is marked as xfail due to the issue reported in python/cpython#121735.
1 parent d873fca commit 34ed4f7

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

importlib_resources/tests/test_files.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
import importlib
55
import contextlib
66

7+
import pytest
8+
79
import importlib_resources as resources
810
from ..abc import Traversable
911
from . import util
@@ -91,6 +93,11 @@ class ModuleFilesDiskTests(DirectSpec, util.DiskSetup, ModulesFiles, unittest.Te
9193
pass
9294

9395

96+
@pytest.mark.xfail(reason="python/cpython#121735")
97+
class ModuleFilesZipTests(DirectSpec, util.ZipSetup, ModulesFiles, unittest.TestCase):
98+
pass
99+
100+
94101
class ImplicitContextFiles:
95102
spec = {
96103
'somepkg': {
@@ -117,5 +124,11 @@ class ImplicitContextFilesDiskTests(
117124
pass
118125

119126

127+
class ImplicitContextFilesZipTests(
128+
DirectSpec, util.ZipSetup, ImplicitContextFiles, unittest.TestCase
129+
):
130+
pass
131+
132+
120133
if __name__ == '__main__':
121134
unittest.main()

0 commit comments

Comments
 (0)