MCPcopy Create free account
hub / github.com/dgrunwald/rust-cpython / python2_string_methods

Function python2_string_methods

tests/test_class.rs:491–497  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

489#[test]
490#[cfg(feature = "python27-sys")]
491fn 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")]

Callers

nothing calls this directly

Calls 1

pythonMethod · 0.80

Tested by

no test coverage detected