diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2016-01-07 08:56:40 -0500 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2016-01-07 08:56:40 -0500 |
commit | 1a57255a7fe11f6a4318b728dfa90131c97b7eee (patch) | |
tree | ecb6c60a9652c04acc86d61b65f984d825e64973 | |
parent | cefd14cafc49a244c865885c87f019217d6d3a2f (diff) | |
download | python-coveragepy-git-1a57255a7fe11f6a4318b728dfa90131c97b7eee.tar.gz |
A test that I'll fix soon
--HG--
branch : ast-branch
-rw-r--r-- | tests/test_arcs.py | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/test_arcs.py b/tests/test_arcs.py index bcc6c024..b7976889 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): |