MCPcopy Create free account
hub / github.com/celery/celery / test_thread_crash

Method test_thread_crash

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

runMethod · 0.95

Tested by

no test coverage detected