kuroko: disable gc in krk_test_noise
This commit is contained in:
parent
ef97b6ab11
commit
1e375a9f74
@ -1,5 +1,6 @@
|
||||
#!/bin/kuroko
|
||||
import os
|
||||
import gc
|
||||
if 'KUROKO_TEST_ENV' in os.environ:
|
||||
return 0
|
||||
|
||||
@ -25,6 +26,7 @@ class NoisePainter(Thread):
|
||||
|
||||
let painters = [NoisePainter() for i in range(5)]
|
||||
|
||||
gc.pause()
|
||||
for painter in painters:
|
||||
painter.start()
|
||||
|
||||
@ -44,4 +46,6 @@ stop = True
|
||||
for painter in painters:
|
||||
painter.join()
|
||||
|
||||
gc.resume()
|
||||
|
||||
drawScreen()
|
||||
|
Loading…
Reference in New Issue
Block a user