Skip to content

Commit

Permalink
Remove python2 case
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthias Wittgen committed Sep 6, 2024
1 parent 7d5ee8f commit e38d593
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions tests/test_RangeSet.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,13 +90,8 @@ def testRanges(self):

def testString(self):
s = RangeSet(1, 10)
if sys.version_info[0] >= 3:
self.assertEqual(str(s), "[(1, 10)]")
self.assertEqual(repr(s), "RangeSet([(1, 10)])")
else:
# pybind11 maps C++ integers to Python long instances in Python 2.
self.assertEqual(str(s), "[(1L, 10L)]")
self.assertEqual(repr(s), "RangeSet([(1L, 10L)])")
self.assertEqual(str(s), "[(1, 10)]")
self.assertEqual(repr(s), "RangeSet([(1, 10)])")
self.assertEqual(s, eval(repr(s), {"RangeSet": RangeSet}))

def testPickle(self):
Expand Down

0 comments on commit e38d593

Please sign in to comment.