Finish rename

This commit is contained in:
Samuel Pastva 2023-10-26 19:02:06 -05:00 committed by GitHub
parent fc787eabd2
commit 2fbc02d06c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -353,8 +353,8 @@ impl SubSubClass {
# Python::with_gil(|py| { # Python::with_gil(|py| {
# let subsub = pyo3::PyCell::new(py, SubSubClass::new()).unwrap(); # let subsub = pyo3::PyCell::new(py, SubSubClass::new()).unwrap();
# pyo3::py_run!(py, subsub, "assert subsub.method3() == 3000"); # pyo3::py_run!(py, subsub, "assert subsub.method3() == 3000");
# let subsub = SubSubClass::dynamic_type(py, 2).unwrap(); # let subsub = SubSubClass::factory_method(py, 2).unwrap();
# let subsubsub = SubSubClass::dynamic_type(py, 3).unwrap(); # let subsubsub = SubSubClass::factory_method(py, 3).unwrap();
# let cls = py.get_type::<SubSubClass>(); # let cls = py.get_type::<SubSubClass>();
# pyo3::py_run!(py, subsub cls, "assert not isinstance(subsub, cls)"); # pyo3::py_run!(py, subsub cls, "assert not isinstance(subsub, cls)");
# pyo3::py_run!(py, subsubsub cls, "assert isinstance(subsubsub, cls)"); # pyo3::py_run!(py, subsubsub cls, "assert isinstance(subsubsub, cls)");