()
| 329 | |
| 330 | #[test] |
| 331 | fn test_strings_are_sequences() { |
| 332 | let gil = Python::acquire_gil(); |
| 333 | let py = gil.python(); |
| 334 | let v = "London Calling"; |
| 335 | assert!(v |
| 336 | .to_py_object(py) |
| 337 | .into_object() |
| 338 | .cast_into::<PySequence>(py) |
| 339 | .is_ok()); |
| 340 | } |
| 341 | #[test] |
| 342 | fn test_seq_empty() { |
| 343 | let gil = Python::acquire_gil(); |