()
| 59 | |
| 60 | def test_exit_on_crash_finite(): |
| 61 | def _exit_finite(): |
| 62 | dataset = DummyDataset(100) |
| 63 | |
| 64 | with DataQueue(dataset, producer_num_workers=4) as data_queue: |
| 65 | time.sleep(3) |
| 66 | raise ValueError |
| 67 | |
| 68 | # https://stackoverflow.com/questions/34506638/how-to-register-atexit-function-in-pythons-multiprocessing-subprocess |
| 69 | |
| 70 | process = multiprocessing.Process(target=_exit_finite) |
| 71 | process.start() |
nothing calls this directly
no test coverage detected