There was an error while loading. Please reload this page.
1 parent 61c9236 commit 8a3c65eCopy full SHA for 8a3c65e
1 file changed
Lib/test/test_class.py
@@ -1019,16 +1019,16 @@ def test_detach_materialized_dict_no_memory(self):
1019
import test.support
1020
import _testcapi
1021
1022
- set_nomemory = _testcapi.set_nomemory # eagerly load the function
1023
-
1024
class A:
1025
def __init__(self):
1026
self.a = 1
1027
self.b = 2
1028
a = A()
1029
d = a.__dict__
+
+ test.support.gc_collect()
1030
with test.support.catch_unraisable_exception() as ex:
1031
- set_nomemory(0, 1)
+ _testcapi.set_nomemory(0, 1)
1032
del a
1033
assert ex.unraisable.exc_type is MemoryError
1034
try:
0 commit comments