File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -1450,8 +1450,8 @@ def callback(ignored):
14501450 assert not detector .gc_happened
14511451 while not detector .gc_happened :
14521452 i += 1
1453- if i > 50000 :
1454- self .fail ("gc didn't happen after 50000 iterations" )
1453+ if i > 100000 :
1454+ self .fail ("gc didn't happen after 100000 iterations" )
14551455 self .assertEqual (len (ouch ), 0 )
14561456 junk .append ([]) # this will eventually trigger gc
14571457
@@ -1541,8 +1541,8 @@ def test_indirect_calls_with_gc_disabled(self):
15411541 detector = GC_Detector ()
15421542 while not detector .gc_happened :
15431543 i += 1
1544- if i > 50000 :
1545- self .fail ("gc didn't happen after 50000 iterations" )
1544+ if i > 100000 :
1545+ self .fail ("gc didn't happen after 100000 iterations" )
15461546 junk .append ([]) # this will eventually trigger gc
15471547
15481548 try :
@@ -1552,11 +1552,11 @@ def test_indirect_calls_with_gc_disabled(self):
15521552 detector = GC_Detector ()
15531553 while not detector .gc_happened :
15541554 i += 1
1555- if i > 50000 :
1555+ if i > 100000 :
15561556 break
15571557 junk .append ([]) # this may eventually trigger gc (if it is enabled)
15581558
1559- self .assertEqual (i , 50001 )
1559+ self .assertEqual (i , 100001 )
15601560 finally :
15611561 gc .enable ()
15621562
You can’t perform that action at this time.
0 commit comments