Skip to content

Commit

Permalink
Revert "Add tests for empty range equality (pythonGH-103751)" (python…
Browse files Browse the repository at this point in the history
…GH-103770)

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

Co-authored-by: Terry Jan Reedy <[email protected]>
  • Loading branch information
terryjreedy authored and miss-islington committed Apr 24, 2023
1 parent e0e1bee commit 43b0565
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 43b0565

Please sign in to comment.