Skip to content

Commit 0f192e0

Browse files
committed
give more time for gc
1 parent fe3f666 commit 0f192e0

File tree

1 file changed

+3
-3
lines changed
  • graalpython/com.oracle.graal.python.test/src/tests/cpyext

1 file changed

+3
-3
lines changed

graalpython/com.oracle.graal.python.test/src/tests/cpyext/test_gc.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -129,9 +129,9 @@ def test_native_class(self):
129129
b = GCTestClass.getCounters()
130130
assert b == (1,1,0,0)
131131
del o
132-
gc.collect()
133-
time.sleep(1)
134-
gc.collect()
132+
for i in range(4):
133+
gc.collect()
134+
time.sleep(1)
135135
c = GCTestClass.getCounters()
136136
assert c == (1,1,1,1)
137137

0 commit comments

Comments
 (0)