commit
7e8616de33
|
@ -482,7 +482,6 @@ mod test {
|
|||
}
|
||||
}
|
||||
|
||||
#[ignore]
|
||||
#[test]
|
||||
fn test_pyobject_drop() {
|
||||
gil::init_once();
|
||||
|
@ -501,7 +500,7 @@ mod test {
|
|||
assert_eq!(ffi::Py_REFCNT(obj_ptr), 2);
|
||||
}
|
||||
drop(obj);
|
||||
assert_eq!(ffi::Py_REFCNT(obj_ptr), 1);
|
||||
assert_eq!(ffi::Py_REFCNT(obj_ptr), 2);
|
||||
|
||||
{
|
||||
let _gil = Python::acquire_gil();
|
||||
|
|
|
@ -133,6 +133,7 @@ doctest!("../guide/src/function.md", guide_function_md);
|
|||
doctest!("../guide/src/get_started.md", guide_get_started_md);
|
||||
doctest!("../guide/src/module.md", guide_module_md);
|
||||
doctest!("../guide/src/parallelism.md", guide_parallelism_md);
|
||||
doctest!("../guide/src/pypy.md", guide_pypy_md);
|
||||
doctest!("../guide/src/rust_cpython.md", guide_rust_cpython_md);
|
||||
|
||||
pub use crate::class::*;
|
||||
|
|
Loading…
Reference in New Issue