()
| 236 | |
| 237 | #[test] |
| 238 | fn test_function_with_custom_conversion_error() { |
| 239 | Python::attach(|py| { |
| 240 | let custom_conv_func = wrap_pyfunction!(function_with_custom_conversion)(py).unwrap(); |
| 241 | |
| 242 | py_expect_exception!( |
| 243 | py, |
| 244 | custom_conv_func, |
| 245 | "custom_conv_func(['a'])", |
| 246 | PyTypeError, |
| 247 | "'list' object is not an instance of 'datetime'", |
| 248 | "while processing 'timestamp'" |
| 249 | ); |
| 250 | }); |
| 251 | } |
| 252 | |
| 253 | #[test] |
| 254 | fn test_from_py_with_defaults() { |
nothing calls this directly
no outgoing calls
no test coverage detected