Merge pull request #1091 from davidhewitt/remove-redundant-test

Remove redundant iter test
This commit is contained in:
Yuji Kanagawa 2020-08-08 16:06:04 +09:00 committed by GitHub
commit c66bc540c8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 13 deletions

View File

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