Make a test in importlib have a more robust test value.

This commit is contained in:
Brett Cannon 2009-04-02 15:35:09 +00:00
parent 978259e9b3
commit f86213f6f2
1 changed files with 1 additions and 1 deletions

View File

@ -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)