summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2016-01-05 07:17:27 -0500
committerNed Batchelder <ned@nedbatchelder.com>2016-01-05 07:17:27 -0500
commite0cc720dad16bed5673a1e7d11ccdceeab200fc3 (patch)
tree06a284d0105628c3437cf3680e6e78952b80e352
parentf7f56ec9adaa531019a27ef7c634db816f30040a (diff)
downloadpython-coveragepy-git-e0cc720dad16bed5673a1e7d11ccdceeab200fc3.tar.gz
Tweak the conditional for the start-point of dictcomps
--HG-- branch : ast-branch
-rw-r--r--tests/test_arcs.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_arcs.py b/tests/test_arcs.py
index cab95c8f..9af4a083 100644
--- a/tests/test_arcs.py
+++ b/tests/test_arcs.py
@@ -397,7 +397,7 @@ class LoopArcTest(CoverageTest):
def test_multiline_dict_comp(self):
if env.PYVERSION < (2, 7):
self.skip("Don't have set or dict comprehensions before 2.7")
- if env.PY2:
+ if env.PYVERSION < (3, 5):
arcz = ".2 2B B-4 2-4"
else:
arcz = ".2 2B B-3 2-3"
@@ -418,7 +418,7 @@ class LoopArcTest(CoverageTest):
arcz=arcz,
)
# Multi dict comp:
- if env.PY2:
+ if env.PYVERSION < (3, 5):
arcz = ".2 2F F-4 2-4"
else:
arcz = ".2 2F F-3 2-3"