Merge pull request #464 from Alexander-N/fixes

Small fixes for tests
This commit is contained in:
Yuji Kanagawa 2019-04-25 12:59:28 +09:00 committed by GitHub
commit 7e8616de33
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -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();

View File

@ -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::*;