diff options
author | Victor Stinner <vstinner@python.org> | 2023-08-24 17:37:41 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-24 17:37:41 (GMT) |
commit | 480a337366f4a5335c599684609d5f59f27805b9 (patch) | |
tree | cb20ab981977eb1a10ee1844e5cfcfadaaeb91e2 /Lib/test/test_context.py | |
parent | aa6f787faa4bc45006da4dc2f942fb9b82c98836 (diff) | |
download | cpython-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.py | 4 |
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): |