diff options
author | Petri Lehtinen <petri@digip.org> | 2011-11-06 19:02:39 (GMT) |
---|---|---|
committer | Petri Lehtinen <petri@digip.org> | 2011-11-06 19:02:39 (GMT) |
commit | ebfaabd66373941e69a0b29589645857e0a6ccfc (patch) | |
tree | a2cf14c2acf5c2fcc5a6363fdf1e874762c62ee0 /Lib/test | |
parent | fd6b582a7128434ae7a5fb0e4c202cc04348ade7 (diff) | |
download | cpython-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')
-rw-r--r-- | Lib/test/list_tests.py | 7 | ||||
-rw-r--r-- | Lib/test/seq_tests.py | 7 |
2 files changed, 0 insertions, 14 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) diff --git a/Lib/test/seq_tests.py b/Lib/test/seq_tests.py index 824ae01..f655c29 100644 --- a/Lib/test/seq_tests.py +++ b/Lib/test/seq_tests.py @@ -361,13 +361,6 @@ class CommonTest(unittest.TestCase): 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) |