There was an error while loading. Please reload this page.
1 parent d330317 commit 40f9873Copy full SHA for 40f9873
1 file changed
Lib/test/test_class.py
@@ -449,6 +449,7 @@ def __delattr__(self, *args):
449
450
def testHasAttrString(self):
451
import sys
452
+ from test.support import import_helper
453
_testlimitedcapi = import_helper.import_module('_testlimitedcapi')
454
455
class A:
@@ -1013,8 +1014,11 @@ class C:
1013
1014
C.a = X()
1015
1016
- @support.nomemtest
1017
+ @cpython_only
1018
def test_detach_materialized_dict_no_memory(self):
1019
+ # Skip test if _testcapi is not available:
1020
+ import_helper.import_module('_testcapi')
1021
+
1022
code = """if 1:
1023
import test.support
1024
import _testcapi
0 commit comments