Skip to content

Commit

Permalink
Revert "Add tests for empty range equality (#103751)" (#103770)
Browse files Browse the repository at this point in the history
This reverts commit dca27a6.
Added tests are redundant with existing tests.
  • Loading branch information
terryjreedy committed Apr 24, 2023
1 parent dfc5c41 commit ab25c7e
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 @@ -677,11 +677,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 ab25c7e

Please sign in to comment.