From e72b682038895c322ef213f8ff04e459371015c1 Mon Sep 17 00:00:00 2001 From: David Hewitt <1939362+davidhewitt@users.noreply.github.com> Date: Fri, 7 Aug 2020 13:49:52 +0100 Subject: [PATCH] Remove redundant iter test --- tests/test_various.rs | 13 ------------- 1 file changed, 13 deletions(-) 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()); -}