(&self, result: PyResult<T>, msg: &str)
| 90 | } |
| 91 | #[track_caller] |
| 92 | pub fn expect_pyresult<T>(&self, result: PyResult<T>, msg: &str) -> T { |
| 93 | match result { |
| 94 | Ok(x) => x, |
| 95 | Err(exc) => self._py_panic_failed(exc, msg), |
| 96 | } |
| 97 | } |
| 98 | |
| 99 | /// Test whether a python object is `None`. |
| 100 | pub fn is_none(&self, obj: &PyObject) -> bool { |
no test coverage detected