mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
Make a test in importlib have a more robust test value.
This commit is contained in:
parent
978259e9b3
commit
f86213f6f2
1 changed files with 1 additions and 1 deletions
|
@ -141,7 +141,7 @@ class PyLoaderTests(testing_abc.LoaderTests):
|
||||||
|
|
||||||
def test_package(self):
|
def test_package(self):
|
||||||
name = '<pkg>'
|
name = '<pkg>'
|
||||||
path = '/path/to/<pkg>/__init__'
|
path = '/path/to/{}/__init__'.format(name)
|
||||||
mock = self.mocker({name: path})
|
mock = self.mocker({name: path})
|
||||||
with util.uncache(name):
|
with util.uncache(name):
|
||||||
module = mock.load_module(name)
|
module = mock.load_module(name)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue