MCPcopy
hub / github.com/celery/celery / test_thread_crash

Method test_thread_crash

t/unit/utils/test_timer2.py:68–73  ·  view source on GitHub ↗
(self, _exit)

Source from the content-addressed store, hash-verified

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()

Callers

nothing calls this directly

Calls 1

runMethod · 0.95

Tested by

no test coverage detected