(self)
| 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') |
nothing calls this directly
no test coverage detected