• Kirill Smelkov's avatar
    X *: tests: don't hang on exception in non-main thread · 7ecb8f14
    Kirill Smelkov authored
    Previously if an assert or something failed in spawned thread, the main
    thread was usually spinning indefinitely = tests hang. -> Switch all
    threading places to use sync.WorkGroup and this way if a thread fails,
    all other threads are canceled and the exception is reported back to
    wg.wait in main thread.
    7ecb8f14
test_thread.py 8.26 KB