()
| 80 | |
| 81 | #[test] |
| 82 | fn empty_class_with_new() { |
| 83 | let gil = Python::acquire_gil(); |
| 84 | let py = gil.python(); |
| 85 | let typeobj = py.get_type::<EmptyClassWithNew>(); |
| 86 | assert!(typeobj |
| 87 | .call(py, NoArgs, None) |
| 88 | .unwrap() |
| 89 | .cast_into::<EmptyClassWithNew>(py) |
| 90 | .is_ok()); |
| 91 | } |
| 92 | |
| 93 | py_class!(class NewWithOneArg |py| { |
| 94 | data _data: i32; |