File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 77
88
99class TestZip (unittest .TestCase ):
10+ root = 'test.test_importlib.data'
11+
1012 def setUp (self ):
1113 # Find the path to the example-*.whl so we can add it to the front of
1214 # sys.path, where we'll then try to find the metadata thereof.
1315 self .resources = ExitStack ()
1416 self .addCleanup (self .resources .close )
1517 wheel = self .resources .enter_context (
16- path ('test.test_importlib.data' ,
17- 'example-21.12-py3-none-any.whl' ))
18+ path (self .root , 'example-21.12-py3-none-any.whl' ))
1819 sys .path .insert (0 , str (wheel ))
1920 self .resources .callback (sys .path .pop , 0 )
2021
@@ -45,8 +46,7 @@ def setUp(self):
4546 self .resources = ExitStack ()
4647 self .addCleanup (self .resources .close )
4748 egg = self .resources .enter_context (
48- path ('test.test_importlib.data' ,
49- 'example-21.12-py3.6.egg' ))
49+ path (self .root , 'example-21.12-py3.6.egg' ))
5050 sys .path .insert (0 , str (egg ))
5151 self .resources .callback (sys .path .pop , 0 )
5252
You can’t perform that action at this time.
0 commit comments