Skip to content

Commit 9fde8ce

Browse files
committed
ci: try fix ci
1 parent 500cdae commit 9fde8ce

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

Lib/test/test_class.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1019,14 +1019,16 @@ def test_detach_materialized_dict_no_memory(self):
10191019
import test.support
10201020
import _testcapi
10211021
1022+
set_nomemory = _testcapi.set_nomemory # eagerly load the function
1023+
10221024
class A:
10231025
def __init__(self):
10241026
self.a = 1
10251027
self.b = 2
10261028
a = A()
10271029
d = a.__dict__
10281030
with test.support.catch_unraisable_exception() as ex:
1029-
_testcapi.set_nomemory(0, 1)
1031+
set_nomemory(0, 1)
10301032
del a
10311033
assert ex.unraisable.exc_type is MemoryError
10321034
try:

0 commit comments

Comments
 (0)