summaryrefslogtreecommitdiff
path: root/Lib/test/test_index.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/test_index.py')
-rw-r--r--Lib/test/test_index.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/test/test_index.py b/Lib/test/test_index.py
index a2ac32132e..87857119e1 100644
--- a/Lib/test/test_index.py
+++ b/Lib/test/test_index.py
@@ -81,8 +81,7 @@ class BaseTestCase(unittest.TestCase):
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()