summaryrefslogtreecommitdiff
path: root/test/test_arcs.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2009-12-13 17:21:58 -0500
committerNed Batchelder <ned@nedbatchelder.com>2009-12-13 17:21:58 -0500
commit5e5c26966ee3d75c17ca33c9d49f8926aefe735b (patch)
tree96e9e9a8550523a6ade00967c823f875d207e330 /test/test_arcs.py
parent9e134e3f40f34a560860efdb48874f8332629ba4 (diff)
downloadpython-coveragepy-git-5e5c26966ee3d75c17ca33c9d49f8926aefe735b.tar.gz
version_info is a nicer way to check Python versions than hexversion is.
Diffstat (limited to 'test/test_arcs.py')
-rw-r--r--test/test_arcs.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test_arcs.py b/test/test_arcs.py
index 45ab27e8..cbd7645d 100644
--- a/test/test_arcs.py
+++ b/test/test_arcs.py
@@ -212,7 +212,7 @@ class LoopArcTest(CoverageTest):
)
# With "while True", 2.x thinks it's computation, 3.x thinks it's
# constant.
- if sys.hexversion >= 0x03000000:
+ if sys.version_info >= (3, 0):
arcz = ".1 12 23 34 45 36 63 57 27 7."
else:
arcz = ".1 12 23 34 45 36 62 57 27 7."
@@ -387,7 +387,7 @@ class ExceptionArcTest(CoverageTest):
arcz=".1 12 23 34 3D 45 56 67 68 7A 8A A3 AB AD BC CD D.",
arcz_missing="3D AB BC CD", arcz_unpredicted="")
- if sys.hexversion >= 0x02050000:
+ if sys.version_info >= (2, 5):
# Try-except-finally was new in 2.5
def test_except_finally(self):
self.check_coverage("""\