Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c2bf9a5

Browse files
committed
Refresh from importlib_metadata@cpython
1 parent b462010 commit c2bf9a5

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

Lib/test/test_importlib/test_zip.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,15 @@
77

88

99
class 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

0 commit comments

Comments
 (0)