We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 500cdae commit 9fde8ceCopy full SHA for 9fde8ce
1 file changed
Lib/test/test_class.py
@@ -1019,14 +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__
1030
with test.support.catch_unraisable_exception() as ex:
- _testcapi.set_nomemory(0, 1)
1031
+ set_nomemory(0, 1)
1032
del a
1033
assert ex.unraisable.exc_type is MemoryError
1034
try:
0 commit comments