diff --git a/tests/test_various.rs b/tests/test_various.rs index 99708e0eb95..dbe9d100ed1 100644 --- a/tests/test_various.rs +++ b/tests/test_various.rs @@ -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()); -}