Skip to content

Commit

Permalink
[3.11] Revert "Add tests for empty range equality (GH-103751)" (GH-10…
Browse files Browse the repository at this point in the history
…3770) (#103781)

Revert "Add tests for empty range equality (GH-103751)" (GH-103770)

This reverts commit dca27a6.
Added tests are redundant with existing tests.
(cherry picked from commit ab25c7e)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
  • Loading branch information
miss-islington and terryjreedy committed Apr 24, 2023
1 parent e0e1bee commit a8489f7
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions Lib/test/test_range.py
Original file line number Diff line number Diff line change
Expand Up @@ -648,11 +648,6 @@ def test_comparison(self):
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):
Expand Down

0 comments on commit a8489f7

Please sign in to comment.