MCPcopy
hub / github.com/celery/celery / test_signum

Method test_signum

t/unit/utils/test_platforms.py:135–141  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

133 seti.assert_called()
134
135 def test_signum(self):
136 assert signals.signum(13) == 13
137 assert signals.signum('INT') == signal.SIGINT
138 assert signals.signum('SIGINT') == signal.SIGINT
139 with pytest.raises(TypeError):
140 signals.signum('int')
141 signals.signum(object())
142
143 @patch('signal.signal')
144 def test_ignore(self, set):

Callers

nothing calls this directly

Calls 2

signumMethod · 0.80
raisesMethod · 0.45

Tested by

no test coverage detected