(self, _exit)
| 87 | |
| 88 | @patch('os._exit') |
| 89 | def test_thread_crash(self, _exit): |
| 90 | t = timer2.Timer() |
| 91 | t._next_entry = Mock() |
| 92 | t._next_entry.side_effect = OSError(131) |
| 93 | t.run() |
| 94 | _exit.assert_called_with(1) |
| 95 | |
| 96 | def test_gc_race_lost(self): |
| 97 | t = timer2.Timer() |