summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_context.py
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2023-08-24 17:37:41 (GMT)
committerGitHub <noreply@github.com>2023-08-24 17:37:41 (GMT)
commit480a337366f4a5335c599684609d5f59f27805b9 (patch)
treecb20ab981977eb1a10ee1844e5cfcfadaaeb91e2 /Lib/test/test_context.py
parentaa6f787faa4bc45006da4dc2f942fb9b82c98836 (diff)
downloadcpython-480a337366f4a5335c599684609d5f59f27805b9.zip
cpython-480a337366f4a5335c599684609d5f59f27805b9.tar.gz
cpython-480a337366f4a5335c599684609d5f59f27805b9.tar.bz2
gh-106320: Remove private _PyContext_NewHamtForTests() (#108434)
Move the function to the internal C API.
Diffstat (limited to 'Lib/test/test_context.py')
-rw-r--r--Lib/test/test_context.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_context.py b/Lib/test/test_context.py
index b1aece4..b72d5ad 100644
--- a/Lib/test/test_context.py
+++ b/Lib/test/test_context.py
@@ -9,7 +9,7 @@ import weakref
from test.support import threading_helper
try:
- from _testcapi import hamt
+ from _testinternalcapi import hamt
except ImportError:
hamt = None
@@ -431,7 +431,7 @@ class EqError(Exception):
pass
-@unittest.skipIf(hamt is None, '_testcapi lacks "hamt()" function')
+@unittest.skipIf(hamt is None, '_testinternalcapi.hamt() not available')
class HamtTest(unittest.TestCase):
def test_hashkey_helper_1(self):