(self, value, check_type=None)
| 165 | assert held_type == check_type |
| 166 | |
| 167 | def check_inexact_conversion(self, value, check_type=None): |
| 168 | out, held_type = _py_to_any_to_py(value) |
| 169 | if isinstance(value, np.ndarray): |
| 170 | assert out == value.tolist() |
| 171 | else: |
| 172 | assert out == list(value) |
| 173 | if check_type is not None: |
| 174 | assert held_type == check_type |
| 175 | |
| 176 | def check_raises(self, value, ee, regex): |
| 177 | with pytest.raises(ee, match=regex): |
no outgoing calls
no test coverage detected