Propagates the underlying conversion error when conversion fails.
(self)
| 154 | assert c(None) is None |
| 155 | |
| 156 | def test_fail(self): |
| 157 | """ |
| 158 | Propagates the underlying conversion error when conversion fails. |
| 159 | """ |
| 160 | c = optional(int) |
| 161 | |
| 162 | with pytest.raises(ValueError): |
| 163 | c("not_an_int") |
| 164 | |
| 165 | def test_converter_instance(self): |
| 166 | """ |
nothing calls this directly
no test coverage detected