()
| 432 | main_thread = threading.current_thread() |
| 433 | |
| 434 | def interrupt(): |
| 435 | # sleep here so that the main thread in the test can get to the sleep too (otherwise |
| 436 | # if we interrupt too fast we won't really check that the sleep itself |
| 437 | # got interrupted -- although if that happens on some tests runs it's |
| 438 | # not really an issue either). |
| 439 | time.sleep(1) |
| 440 | interrupt_main_thread(main_thread) |
| 441 | |
| 442 | if IS_PYPY: |
| 443 | # On PyPy a time.sleep() is not being properly interrupted, |
nothing calls this directly
no test coverage detected