From eae699748981c575748839f8ffad9742b0f355eb Mon Sep 17 00:00:00 2001 From: Matthias Wittgen Date: Fri, 6 Sep 2024 14:05:42 -0700 Subject: [PATCH] Remove python2 case --- tests/test_RangeSet.py | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/tests/test_RangeSet.py b/tests/test_RangeSet.py index 05101f3..79481b6 100644 --- a/tests/test_RangeSet.py +++ b/tests/test_RangeSet.py @@ -26,7 +26,6 @@ # along with this program. If not, see . import pickle -import sys import unittest from lsst.sphgeom import RangeSet @@ -90,13 +89,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):