summaryrefslogtreecommitdiffstats
path: root/Lib/test/list_tests.py
diff options
context:
space:
mode:
authorPetri Lehtinen <petri@digip.org>2011-11-06 18:58:50 (GMT)
committerPetri Lehtinen <petri@digip.org>2011-11-06 18:59:01 (GMT)
commit3b9d92aefef17ee528e4bfa0f7e87dc61e4a0da6 (patch)
treee3d8544e030219796ed0a5ff685a6a3386365fd2 /Lib/test/list_tests.py
parent030aa35a1b5dc9a91b44abeda80d32df8a8d8952 (diff)
downloadcpython-3b9d92aefef17ee528e4bfa0f7e87dc61e4a0da6.zip
cpython-3b9d92aefef17ee528e4bfa0f7e87dc61e4a0da6.tar.gz
cpython-3b9d92aefef17ee528e4bfa0f7e87dc61e4a0da6.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 9528052..b8d6d6b 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)