Commit 04920863 authored by Benjamin Peterson's avatar Benjamin Peterson

merge heads

parents 161aece9 d62cd562
......@@ -3,6 +3,7 @@ from . import util as import_util
import sys
import unittest
import importlib
from test import support
class ParentModuleTests(unittest.TestCase):
......@@ -38,7 +39,10 @@ class ParentModuleTests(unittest.TestCase):
module_code={'mod': module_injection})
with mock_modules as mock:
with util.import_state(meta_path=[mock]):
submodule = import_util.import_(subname)
try:
submodule = import_util.import_(subname)
finally:
support.unload(subname)
def test_main():
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment