summaryrefslogtreecommitdiff
path: root/Lib/test/test_importlib/test_abc.py
diff options
context:
space:
mode:
authorHai Shi <shihai1992@gmail.com>2020-08-04 23:53:12 +0800
committerGitHub <noreply@github.com>2020-08-04 17:53:12 +0200
commitc7decc27d529c04a4e6b2922e3f3f9419b920f63 (patch)
tree9bcb971af68ed2e08f4aa4001412d38520194cff /Lib/test/test_importlib/test_abc.py
parent604bba1f8fe32479c89b9824b2231cc4480dd110 (diff)
downloadcpython-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.py5
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)