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

Method test_reraise_errors

t/unit/security/test_security.py:171–177  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

169 builtins.__import__ = _import
170
171 def test_reraise_errors(self):
172 with pytest.raises(SecurityError):
173 with reraise_errors(errors=(KeyError,)):
174 raise KeyError('foo')
175 with pytest.raises(KeyError):
176 with reraise_errors(errors=(ValueError,)):
177 raise KeyError('bar')

Callers

nothing calls this directly

Calls 2

reraise_errorsFunction · 0.90
raisesMethod · 0.80

Tested by

no test coverage detected