File tree 1 file changed +4
-9
lines changed
importlib_resources/tests
1 file changed +4
-9
lines changed Original file line number Diff line number Diff line change @@ -63,14 +63,16 @@ def setUp(self):
63
63
self .data = namespacedata01
64
64
65
65
66
- class ModulesFilesTests ( unittest . TestCase ) :
66
+ class SiteDir :
67
67
def setUp (self ):
68
68
self .fixtures = contextlib .ExitStack ()
69
69
self .addCleanup (self .fixtures .close )
70
70
self .site_dir = self .fixtures .enter_context (os_helper .temp_dir ())
71
71
self .fixtures .enter_context (import_helper .DirsOnSysPath (self .site_dir ))
72
72
self .fixtures .enter_context (import_helper .CleanImport ())
73
73
74
+
75
+ class ModulesFilesTests (SiteDir , unittest .TestCase ):
74
76
def test_module_resources (self ):
75
77
"""
76
78
A module can have resources found adjacent to the module.
@@ -86,14 +88,7 @@ def test_module_resources(self):
86
88
assert actual == spec ['res.txt' ]
87
89
88
90
89
- class ImplicitContextFilesTests (unittest .TestCase ):
90
- def setUp (self ):
91
- self .fixtures = contextlib .ExitStack ()
92
- self .addCleanup (self .fixtures .close )
93
- self .site_dir = self .fixtures .enter_context (os_helper .temp_dir ())
94
- self .fixtures .enter_context (import_helper .DirsOnSysPath (self .site_dir ))
95
- self .fixtures .enter_context (import_helper .CleanImport ())
96
-
91
+ class ImplicitContextFilesTests (SiteDir , unittest .TestCase ):
97
92
@__import__ ('pytest' ).mark .xfail (reason = "work in progress" )
98
93
def test_implicit_files (self ):
99
94
"""
You can’t perform that action at this time.
0 commit comments