We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5665c8b commit 613aef2Copy full SHA for 613aef2
Lib/test/test_index.py
@@ -81,9 +81,7 @@ def __index__(self):
81
return True
82
83
bad_int = BadInt()
84
- with self.assertWarns(DeprecationWarning):
85
- n = operator.index(bad_int)
86
- self.assertEqual(n, 1)
+ self.assertRaises(TypeError, operator.index, bad_int)
87
88
bad_int = BadInt2()
89
n = operator.index(bad_int)
0 commit comments