Skip to content

Commit

Permalink
Fix some more build errors
Browse files Browse the repository at this point in the history
  • Loading branch information
juntyr committed Feb 21, 2024
1 parent 8de1b13 commit 5f35069
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/instance.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2168,11 +2168,12 @@ a = A()
let object: Py<PyDict> = PyDict::new_bound(py).unbind();
let object2 = object.clone_ref(py);

assert_eq!(object.as_ptr(), object2.as_ptr());
assert_eq!(object.get_refcnt(py), 2);

object.drop_ref(py);

assert_eq!(object.get_refcnt(py), 1);
assert_eq!(object2.get_refcnt(py), 1);

object2.drop_ref(py);
});
Expand Down

0 comments on commit 5f35069

Please sign in to comment.