Skip to content

Commit 40f9873

Browse files
committed
XXX partial reversion of 1cbe460
1 parent d330317 commit 40f9873

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

Lib/test/test_class.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -449,6 +449,7 @@ def __delattr__(self, *args):
449449

450450
def testHasAttrString(self):
451451
import sys
452+
from test.support import import_helper
452453
_testlimitedcapi = import_helper.import_module('_testlimitedcapi')
453454

454455
class A:
@@ -1013,8 +1014,11 @@ class C:
10131014
C.a = X()
10141015
C.a = X()
10151016

1016-
@support.nomemtest
1017+
@cpython_only
10171018
def test_detach_materialized_dict_no_memory(self):
1019+
# Skip test if _testcapi is not available:
1020+
import_helper.import_module('_testcapi')
1021+
10181022
code = """if 1:
10191023
import test.support
10201024
import _testcapi

0 commit comments

Comments
 (0)