File tree Expand file tree Collapse file tree 1 file changed +4
-9
lines changed
importlib_resources/tests Expand file tree Collapse file tree 1 file changed +4
-9
lines changed Original file line number Diff line number Diff line change @@ -47,14 +47,16 @@ def setUp(self):
47
47
self .data = namespacedata01
48
48
49
49
50
- class ModulesFilesTests ( unittest . TestCase ) :
50
+ class SiteDir :
51
51
def setUp (self ):
52
52
self .fixtures = contextlib .ExitStack ()
53
53
self .addCleanup (self .fixtures .close )
54
54
self .site_dir = self .fixtures .enter_context (os_helper .temp_dir ())
55
55
self .fixtures .enter_context (import_helper .DirsOnSysPath (self .site_dir ))
56
56
self .fixtures .enter_context (import_helper .CleanImport ())
57
57
58
+
59
+ class ModulesFilesTests (SiteDir , unittest .TestCase ):
58
60
def test_module_resources (self ):
59
61
"""
60
62
A module can have resources found adjacent to the module.
@@ -70,14 +72,7 @@ def test_module_resources(self):
70
72
assert actual == spec ['res.txt' ]
71
73
72
74
73
- class ImplicitContextFilesTests (unittest .TestCase ):
74
- def setUp (self ):
75
- self .fixtures = contextlib .ExitStack ()
76
- self .addCleanup (self .fixtures .close )
77
- self .site_dir = self .fixtures .enter_context (os_helper .temp_dir ())
78
- self .fixtures .enter_context (import_helper .DirsOnSysPath (self .site_dir ))
79
- self .fixtures .enter_context (import_helper .CleanImport ())
80
-
75
+ class ImplicitContextFilesTests (SiteDir , unittest .TestCase ):
81
76
@__import__ ('pytest' ).mark .xfail (reason = "work in progress" )
82
77
def test_implicit_files (self ):
83
78
"""
You can’t perform that action at this time.
0 commit comments