Skip to content

Commit

Permalink
Remove redundant iter test
Browse files Browse the repository at this point in the history
  • Loading branch information
davidhewitt committed Aug 7, 2020
1 parent 3809e2b commit e72b682
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions tests/test_various.rs
Original file line number Diff line number Diff line change
Expand Up @@ -168,16 +168,3 @@ fn test_pickle() {
"#
);
}

#[test]
fn incorrect_iter() {
let gil = Python::acquire_gil();
let py = gil.python();
let int = 13isize.to_object(py);
let int_ref = int.as_ref(py);
// Should not segfault.
assert!(int_ref.iter().is_err());
assert!(py
.eval("print('Exception state should not be set.')", None, None)
.is_ok());
}

0 comments on commit e72b682

Please sign in to comment.