summaryrefslogtreecommitdiff
path: root/tests/test_arcs.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_arcs.py')
-rw-r--r--tests/test_arcs.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/test_arcs.py b/tests/test_arcs.py
index a9533e78..ea79d495 100644
--- a/tests/test_arcs.py
+++ b/tests/test_arcs.py
@@ -342,7 +342,7 @@ class LoopArcTest(CoverageTest):
""",
arcz=arcz, arcz_missing="", arcz_unpredicted="")
- def test_other_comprehensions(self):
+ def test_generator_expression(self):
# Generator expression:
self.check_coverage("""\
o = ((1,2), (3,4))
@@ -354,6 +354,10 @@ class LoopArcTest(CoverageTest):
arcz=".1 .2 2-2 12 23 34 45 53 3.",
arcz_missing="", arcz_unpredicted=""
)
+
+ def test_other_comprehensions(self):
+ if env.PYVERSION < (2, 7):
+ self.skip("Don't have set or dict comprehensions before 2.7")
# Set comprehension:
self.check_coverage("""\
o = ((1,2), (3,4))