summaryrefslogtreecommitdiffstats
path: root/Lib/test/list_tests.py
diff options
context:
space:
mode:
authorPetri Lehtinen <petri@digip.org>2011-11-06 19:05:41 (GMT)
committerPetri Lehtinen <petri@digip.org>2011-11-06 19:06:10 (GMT)
commit9589ab174577773c48492b4e2ad596d4b9c3b120 (patch)
tree221d0ef407f5f86f2ab252d7e159ba5a661e1b9d /Lib/test/list_tests.py
parent864741b2c7aaabda736f917694a1d3b26700e8e3 (diff)
parentebfaabd66373941e69a0b29589645857e0a6ccfc (diff)
downloadcpython-9589ab174577773c48492b4e2ad596d4b9c3b120.zip
cpython-9589ab174577773c48492b4e2ad596d4b9c3b120.tar.gz
cpython-9589ab174577773c48492b4e2ad596d4b9c3b120.tar.bz2
Revert "Accept None as start and stop parameters for list.index() and tuple.index()"
Issue #13340.
Diffstat (limited to 'Lib/test/list_tests.py')
-rw-r--r--Lib/test/list_tests.py7
1 files changed, 0 insertions, 7 deletions
diff --git a/Lib/test/list_tests.py b/Lib/test/list_tests.py
index 0824d48..42e118b 100644
--- a/Lib/test/list_tests.py
+++ b/Lib/test/list_tests.py
@@ -365,13 +365,6 @@ class CommonTest(seq_tests.CommonTest):
self.assertEqual(u.index(0, 3), 3)
self.assertEqual(u.index(0, 3, 4), 3)
self.assertRaises(ValueError, u.index, 2, 0, -10)
- self.assertEqual(u.index(1, None), 4)
- self.assertEqual(u.index(1, None, None), 4)
- self.assertEqual(u.index(1, 0, None), 4)
- self.assertEqual(u.index(1, None, 6), 4)
- self.assertRaises(ValueError, u.index, -1, 3)
- self.assertRaises(ValueError, u.index, -1, 3, None)
- self.assertRaises(ValueError, u.index, 1, None, 4)
self.assertRaises(TypeError, u.index)