Skip to content

Commit

Permalink
tests/thread: Re-enable GC before stress_schedule test ends.
Browse files Browse the repository at this point in the history
Otherwise GC stays disabled (not re-enabled by soft reset) and later test
runs fail with MemoryError.

Signed-off-by: Angus Gratton <angus@redyak.com.au>
  • Loading branch information
projectgus authored and dpgeorge committed Jun 21, 2024
1 parent 4074643 commit 5a778eb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/thread/stress_schedule.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ def thread():
thread_run = False
time.sleep_ms(20)

gc.enable()

if n < _NUM_TASKS:
# Not all the tasks were scheduled, likely the scheduler stopped working.
print(n)
Expand Down

0 comments on commit 5a778eb

Please sign in to comment.