kuroko: disable gc in krk_test_noise

This commit is contained in:
K. Lange 2022-05-23 23:29:30 +09:00
parent ef97b6ab11
commit 1e375a9f74

View File

@ -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()