aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Lib/test/test_importlib/test_namespace_pkgs.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/test_importlib/test_namespace_pkgs.py')
-rw-r--r--Lib/test/test_importlib/test_namespace_pkgs.py7
1 files changed, 1 insertions, 6 deletions
diff --git a/Lib/test/test_importlib/test_namespace_pkgs.py b/Lib/test/test_importlib/test_namespace_pkgs.py
index 2ea41b7a4c5..cd08498545e 100644
--- a/Lib/test/test_importlib/test_namespace_pkgs.py
+++ b/Lib/test/test_importlib/test_namespace_pkgs.py
@@ -65,12 +65,7 @@ class NamespacePackageTest(unittest.TestCase):
self.resolved_paths = [
os.path.join(self.root, path) for path in self.paths
]
- self.ctx = namespace_tree_context(path=self.resolved_paths)
- self.ctx.__enter__()
-
- def tearDown(self):
- # TODO: will we ever want to pass exc_info to __exit__?
- self.ctx.__exit__(None, None, None)
+ self.enterContext(namespace_tree_context(path=self.resolved_paths))
class SingleNamespacePackage(NamespacePackageTest):