()
| 499 | #[test] |
| 500 | #[cfg(feature = "python3-sys")] |
| 501 | fn python3_string_methods() { |
| 502 | let gil = Python::acquire_gil(); |
| 503 | let py = gil.python(); |
| 504 | |
| 505 | let obj = StringMethods::create_instance(py).unwrap(); |
| 506 | py_assert!(py, obj, "bytes(obj) == b'bytes'"); |
| 507 | } |
| 508 | |
| 509 | py_class!(class Comparisons |py| { |
| 510 | data val: i32; |