summaryrefslogtreecommitdiff
path: root/tests/test_arcs.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2016-01-07 08:56:40 -0500
committerNed Batchelder <ned@nedbatchelder.com>2016-01-07 08:56:40 -0500
commita4daf4907f064aeeff789d5679e90452eb24ef8b (patch)
treee3a1f5e3351636b6ec9fbcc2d5531e8a4357a243 /tests/test_arcs.py
parentfd524de906c72855360f05f5a80cc1b540895829 (diff)
downloadpython-coveragepy-a4daf4907f064aeeff789d5679e90452eb24ef8b.tar.gz
A test that I'll fix soon
Diffstat (limited to 'tests/test_arcs.py')
-rw-r--r--tests/test_arcs.py19
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/test_arcs.py b/tests/test_arcs.py
index bcc6c02..b797688 100644
--- a/tests/test_arcs.py
+++ b/tests/test_arcs.py
@@ -964,6 +964,25 @@ class MiscArcTest(CoverageTest):
arcs_missing=[], arcs_unpredicted=[],
)
+ def test_optimized_away_lines(self):
+ self.skip("TODO: fix this test")
+ self.check_coverage("""\
+ a = 1
+ if len([2]):
+ c = 3
+ if 0: # this line isn't in the compiled code.
+ if len([5]):
+ d = 6
+ e = 7
+ """,
+ lines=[1, 2, 3, 7],
+ arcz=".1 12 23 27 37 7.",
+ )
+
+
+class DecoractorArcTest(CoverageTest):
+ """Tests of arcs with decorators."""
+
def test_function_decorator(self):
self.check_coverage("""\
def decorator(arg):