summaryrefslogtreecommitdiffstats
path: root/Lib/test/list_tests.py
diff options
context:
space:
mode:
authorPetri Lehtinen <petri@digip.org>2011-11-06 19:02:39 (GMT)
committerPetri Lehtinen <petri@digip.org>2011-11-06 19:02:39 (GMT)
commitebfaabd66373941e69a0b29589645857e0a6ccfc (patch)
treea2cf14c2acf5c2fcc5a6363fdf1e874762c62ee0 /Lib/test/list_tests.py
parentfd6b582a7128434ae7a5fb0e4c202cc04348ade7 (diff)
downloadcpython-ebfaabd66373941e69a0b29589645857e0a6ccfc.zip
cpython-ebfaabd66373941e69a0b29589645857e0a6ccfc.tar.gz
cpython-ebfaabd66373941e69a0b29589645857e0a6ccfc.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 ebf86c5..be054ea 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)