Merge pull request #1091 from davidhewitt/remove-redundant-test
Remove redundant iter test
This commit is contained in:
commit
c66bc540c8
|
@ -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());
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue