summaryrefslogtreecommitdiff
path: root/Lib/test/test_tools.py
diff options
context:
space:
mode:
authorBrett Cannon <brett@python.org>2014-05-30 14:55:29 -0400
committerBrett Cannon <brett@python.org>2014-05-30 14:55:29 -0400
commit2a17bde930af72995a217f6625d763e828bf5ce1 (patch)
treee36ddef450d49c50b324d5e2741161f9ea22188c /Lib/test/test_tools.py
parentc8f0d6ebfc8e114d72c9e642ed33ebb93276427d (diff)
downloadcpython-git-2a17bde930af72995a217f6625d763e828bf5ce1.tar.gz
Issue #20383: Introduce importlib.util.module_from_spec().
Along the way, dismantle importlib._bootstrap._SpecMethods as it was no longer relevant and constructing the new function required partially dismantling the class anyway.
Diffstat (limited to 'Lib/test/test_tools.py')
-rw-r--r--Lib/test/test_tools.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_tools.py b/Lib/test/test_tools.py
index 1bf7d54c1e..2eb80664c9 100644
--- a/Lib/test/test_tools.py
+++ b/Lib/test/test_tools.py
@@ -407,7 +407,7 @@ class PdepsTests(unittest.TestCase):
def setUpClass(self):
path = os.path.join(scriptsdir, 'pdeps.py')
spec = importlib.util.spec_from_file_location('pdeps', path)
- self.pdeps = importlib._bootstrap._SpecMethods(spec).load()
+ self.pdeps = importlib._bootstrap._load(spec)
@classmethod
def tearDownClass(self):
@@ -432,7 +432,7 @@ class Gprof2htmlTests(unittest.TestCase):
def setUp(self):
path = os.path.join(scriptsdir, 'gprof2html.py')
spec = importlib.util.spec_from_file_location('gprof2html', path)
- self.gprof = importlib._bootstrap._SpecMethods(spec).load()
+ self.gprof = importlib._bootstrap._load(spec)
oldargv = sys.argv
def fixup():
sys.argv = oldargv