diff options
author | Hai Shi <shihai1992@gmail.com> | 2020-08-04 23:53:12 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-04 17:53:12 +0200 |
commit | c7decc27d529c04a4e6b2922e3f3f9419b920f63 (patch) | |
tree | 9bcb971af68ed2e08f4aa4001412d38520194cff /Lib/test/test_importlib/test_abc.py | |
parent | 604bba1f8fe32479c89b9824b2231cc4480dd110 (diff) | |
download | cpython-git-c7decc27d529c04a4e6b2922e3f3f9419b920f63.tar.gz |
bpo-40275: Use new test.support helper submodules in tests (GH-21727)
Diffstat (limited to 'Lib/test/test_importlib/test_abc.py')
-rw-r--r-- | Lib/test/test_importlib/test_abc.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Lib/test/test_importlib/test_abc.py b/Lib/test/test_importlib/test_abc.py index 9816b35ef8..605738fae2 100644 --- a/Lib/test/test_importlib/test_abc.py +++ b/Lib/test/test_importlib/test_abc.py @@ -3,6 +3,7 @@ import marshal import os import sys from test import support +from test.support import import_helper import types import unittest from unittest import mock @@ -579,8 +580,8 @@ class InspectLoaderLoadModuleTests: module_name = 'blah' def setUp(self): - support.unload(self.module_name) - self.addCleanup(support.unload, self.module_name) + import_helper.unload(self.module_name) + self.addCleanup(import_helper.unload, self.module_name) def load(self, loader): spec = self.util.spec_from_loader(self.module_name, loader) |