()
| 311 | |
| 312 | @pytest.mark.skipif(sys.platform.startswith("emscripten"), reason="Requires threads") |
| 313 | def test_threading(): |
| 314 | with m.ostream_redirect(stdout=True, stderr=False): |
| 315 | # start some threads |
| 316 | threads = [m.TestThread() for _j in range(20)] |
| 317 | |
| 318 | # give the threads some time to fail |
| 319 | threads[0].sleep() |
| 320 | |
| 321 | # stop all the threads |
| 322 | for t in threads: |
| 323 | t.stop() |
| 324 | |
| 325 | for t in threads: |
| 326 | t.join() |
| 327 | |
| 328 | # if a thread segfaults, we don't get here |
| 329 | assert True |
nothing calls this directly
no test coverage detected