File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed
Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -68,7 +68,6 @@ def get_fips_mode():
6868
6969requires_sha3 = unittest .skipUnless (_sha3 , 'requires _sha3' )
7070
71- _testcapi = import_helper .import_module ('_testcapi' )
7271
7372def hexstr (s ):
7473 assert isinstance (s , bytes ), repr (s )
@@ -1205,12 +1204,10 @@ def test_readonly_types(self):
12051204 hash_type .value = False
12061205
12071206 @unittest .skipUnless (HASH is not None , 'need _hashlib' )
1208- @unittest .skipUnless (hasattr (_testcapi , 'set_nomemory' ),
1209- 'need _testcapi.set_nomemory()' )
12101207 def test_hashlib_init_memory_error_no_df (self ):
12111208 """gh-145301 regression test."""
1209+ import_helper .import_module ('_testcapi' )
12121210 code = textwrap .dedent ("""
1213- import sys
12141211 import _testcapi
12151212 _testcapi.set_nomemory(40, 41)
12161213 try:
You can’t perform that action at this time.
0 commit comments