Skip to content

Commit 8a3c65e

Browse files
committed
ci: try fix ci
1 parent 61c9236 commit 8a3c65e

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Lib/test/test_class.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1019,16 +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-
10241022
class A:
10251023
def __init__(self):
10261024
self.a = 1
10271025
self.b = 2
10281026
a = A()
10291027
d = a.__dict__
1028+
1029+
test.support.gc_collect()
10301030
with test.support.catch_unraisable_exception() as ex:
1031-
set_nomemory(0, 1)
1031+
_testcapi.set_nomemory(0, 1)
10321032
del a
10331033
assert ex.unraisable.exc_type is MemoryError
10341034
try:

0 commit comments

Comments
 (0)