mirror of
https://github.com/python/cpython.git
synced 2024-11-25 10:54:51 +08:00
Make a test in importlib have a more robust test value.
This commit is contained in:
parent
978259e9b3
commit
f86213f6f2
@ -141,7 +141,7 @@ class PyLoaderTests(testing_abc.LoaderTests):
|
||||
|
||||
def test_package(self):
|
||||
name = '<pkg>'
|
||||
path = '/path/to/<pkg>/__init__'
|
||||
path = '/path/to/{}/__init__'.format(name)
|
||||
mock = self.mocker({name: path})
|
||||
with util.uncache(name):
|
||||
module = mock.load_module(name)
|
||||
|
Loading…
Reference in New Issue
Block a user