mirror of
https://github.com/python/cpython.git
synced 2025-08-23 18:24:46 +00:00
This reverts commit dca27a69a8
.
Added tests are redundant with existing tests.
This commit is contained in:
parent
dfc5c41632
commit
ab25c7e311
1 changed files with 0 additions and 5 deletions
|
@ -677,11 +677,6 @@ class RangeTest(unittest.TestCase):
|
||||||
hash(range(2**200, 2**201, 2**100)))
|
hash(range(2**200, 2**201, 2**100)))
|
||||||
self.assertNotEqual(range(2**200, 2**201, 2**100),
|
self.assertNotEqual(range(2**200, 2**201, 2**100),
|
||||||
range(2**200, 2**201 + 1, 2**100))
|
range(2**200, 2**201 + 1, 2**100))
|
||||||
# Empty ranges
|
|
||||||
self.assertEqual(range(32, 16), range(0))
|
|
||||||
self.assertEqual(hash(range(32, 16)), hash(range(0)))
|
|
||||||
self.assertEqual(range(2, 1, 3), range(0))
|
|
||||||
self.assertEqual(hash(range(2, 1, 3)), hash(range(0)))
|
|
||||||
|
|
||||||
# Order comparisons are not implemented for ranges.
|
# Order comparisons are not implemented for ranges.
|
||||||
with self.assertRaises(TypeError):
|
with self.assertRaises(TypeError):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue