Issue #17576: Removed deprecation warnings added in changeset 618cca51a27e.
diff --git a/Lib/test/test_index.py b/Lib/test/test_index.py
index a2ac321..8785711 100644
--- a/Lib/test/test_index.py
+++ b/Lib/test/test_index.py
@@ -81,8 +81,7 @@
                 return True
 
         bad_int = BadInt()
-        with self.assertWarns(DeprecationWarning):
-            n = operator.index(bad_int)
+        n = operator.index(bad_int)
         self.assertEqual(n, 1)
 
         bad_int = BadInt2()