Skip to content

Commit

Permalink
deal with upstream deprecation of new_bound
Browse files Browse the repository at this point in the history
  • Loading branch information
ngoldbaum committed Aug 1, 2024
1 parent 963f6c2 commit 44d1f9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/types/dict.rs
Original file line number Diff line number Diff line change
Expand Up @@ -750,7 +750,7 @@ mod tests {
Python::with_gil(|py| {
let class = py.get_type_bound::<HashErrors>();
let instance = class.call0().unwrap();
let d = PyDict::new_bound(py);
let d = PyDict::new(py);
match d.get_item(instance) {
Ok(_) => {
panic!("this get_item call should always error")
Expand Down

0 comments on commit 44d1f9e

Please sign in to comment.