(self, _exit)
| 66 | |
| 67 | @patch('os._exit') |
| 68 | def test_thread_crash(self, _exit): |
| 69 | t = timer2.Timer() |
| 70 | t._next_entry = Mock() |
| 71 | t._next_entry.side_effect = OSError(131) |
| 72 | t.run() |
| 73 | _exit.assert_called_with(1) |
| 74 | |
| 75 | def test_gc_race_lost(self): |
| 76 | t = timer2.Timer() |