0
0
mirror of https://github.com/django/django.git synced 2024-12-01 15:42:04 +01:00

Refs #25225 -- Removed test for removed ListMixin._IndexError.

Unused since 197b187810.
This commit is contained in:
Nick Pope 2017-09-01 13:58:10 +01:00 committed by Tim Graham
parent 2fc5a5bfe3
commit 35800acf79

View File

@ -419,13 +419,6 @@ class ListMixinTest(unittest.TestCase):
self.assertLess(ul, pl + [2], 'cmp')
self.assertLessEqual(ul, pl + [2], 'cmp')
# Also works with a custom IndexError
ul_longer = ul + [2]
ul_longer._IndexError = TypeError
ul._IndexError = TypeError
self.assertNotEqual(ul_longer, pl)
self.assertGreater(ul_longer, ul)
pl[1] = 20
self.assertGreater(pl, ul, 'cmp for gt self')
self.assertLess(ul, pl, 'cmp for self lt')