From 1e375a9f74c7ed65d14b462667fb0530ecedee47 Mon Sep 17 00:00:00 2001 From: "K. Lange" Date: Mon, 23 May 2022 23:29:30 +0900 Subject: [PATCH] kuroko: disable gc in krk_test_noise --- apps/krk_test_noise.krk | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/apps/krk_test_noise.krk b/apps/krk_test_noise.krk index c4994531..ef565297 100755 --- a/apps/krk_test_noise.krk +++ b/apps/krk_test_noise.krk @@ -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()