summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/pythoninfo.py4
-rw-r--r--Lib/test/test_cmd_line.py6
-rw-r--r--Lib/test/test_sys.py4
3 files changed, 7 insertions, 7 deletions
diff --git a/Lib/test/pythoninfo.py b/Lib/test/pythoninfo.py
index b84c144..e4e098d 100644
--- a/Lib/test/pythoninfo.py
+++ b/Lib/test/pythoninfo.py
@@ -637,11 +637,11 @@ def collect_decimal(info_add):
def collect_testcapi(info_add):
try:
- import _testcapi
+ import _testinternalcapi
except ImportError:
return
- call_func(info_add, 'pymem.allocator', _testcapi, 'pymem_getallocatorsname')
+ call_func(info_add, 'pymem.allocator', _testinternalcapi, 'pymem_getallocatorsname')
def collect_resource(info_add):
diff --git a/Lib/test/test_cmd_line.py b/Lib/test/test_cmd_line.py
index 9429800..e88b7c8 100644
--- a/Lib/test/test_cmd_line.py
+++ b/Lib/test/test_cmd_line.py
@@ -717,11 +717,11 @@ class CmdLineTest(unittest.TestCase):
# Memory allocator debug hooks
try:
- import _testcapi
+ import _testinternalcapi
except ImportError:
pass
else:
- code = "import _testcapi; print(_testcapi.pymem_getallocatorsname())"
+ code = "import _testinternalcapi; print(_testinternalcapi.pymem_getallocatorsname())"
with support.SuppressCrashReport():
out = self.run_xdev("-c", code, check_exitcode=False)
if support.with_pymalloc():
@@ -783,7 +783,7 @@ class CmdLineTest(unittest.TestCase):
self.assertEqual(out, expected_filters)
def check_pythonmalloc(self, env_var, name):
- code = 'import _testcapi; print(_testcapi.pymem_getallocatorsname())'
+ code = 'import _testinternalcapi; print(_testinternalcapi.pymem_getallocatorsname())'
env = dict(os.environ)
env.pop('PYTHONDEVMODE', None)
if env_var is not None:
diff --git a/Lib/test/test_sys.py b/Lib/test/test_sys.py
index 37f75ad..7861fa2 100644
--- a/Lib/test/test_sys.py
+++ b/Lib/test/test_sys.py
@@ -960,12 +960,12 @@ class SysModuleTest(unittest.TestCase):
"sys.getallocatedblocks unavailable on this build")
def test_getallocatedblocks(self):
try:
- import _testcapi
+ import _testinternalcapi
except ImportError:
with_pymalloc = support.with_pymalloc()
else:
try:
- alloc_name = _testcapi.pymem_getallocatorsname()
+ alloc_name = _testinternalcapi.pymem_getallocatorsname()
except RuntimeError as exc:
# "cannot get allocators name" (ex: tracemalloc is used)
with_pymalloc = True