()
| 489 | #[test] |
| 490 | #[cfg(feature = "python27-sys")] |
| 491 | fn python2_string_methods() { |
| 492 | let gil = Python::acquire_gil(); |
| 493 | let py = gil.python(); |
| 494 | |
| 495 | let obj = StringMethods::create_instance(py).unwrap(); |
| 496 | py_assert!(py, obj, "unicode(obj) == u'unicode'"); |
| 497 | } |
| 498 | |
| 499 | #[test] |
| 500 | #[cfg(feature = "python3-sys")] |