mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
[3.11] Revert "Add tests for empty range equality (GH-103751)" (GH-103770) (#103781)
Revert "Add tests for empty range equality (GH-103751)" (GH-103770) This reverts commitdca27a69a8
. Added tests are redundant with existing tests. (cherry picked from commitab25c7e311
) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
This commit is contained in:
parent
e0e1bee833
commit
a8489f7f26
1 changed files with 0 additions and 5 deletions
|
@ -648,11 +648,6 @@ class RangeTest(unittest.TestCase):
|
|||
hash(range(2**200, 2**201, 2**100)))
|
||||
self.assertNotEqual(range(2**200, 2**201, 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.
|
||||
with self.assertRaises(TypeError):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue