diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2020-12-21 21:33:59 -0500 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2021-01-10 09:46:18 -0500 |
commit | 70e3345811b945fdcfe4f92ba534ed2d8ad850af (patch) | |
tree | ea75d484f71621178d32c217343e314e4156f9e7 /tests/test_coverage.py | |
parent | 840537a7dc0cbaaea5b65ee02a463d559afa20bc (diff) | |
download | python-coveragepy-git-70e3345811b945fdcfe4f92ba534ed2d8ad850af.tar.gz |
2506 is fixed?
Diffstat (limited to 'tests/test_coverage.py')
-rw-r--r-- | tests/test_coverage.py | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/tests/test_coverage.py b/tests/test_coverage.py index 89c8e9f4..5d5c6ee5 100644 --- a/tests/test_coverage.py +++ b/tests/test_coverage.py @@ -457,11 +457,12 @@ class SimpleStatementTest(CoverageTest): """, [1,2,3,4,5], "4") - def test_strange_unexecuted_continue(self): # pragma: not covered + def test_strange_unexecuted_continue(self): # Peephole optimization of jumps to jumps can mean that some statements # never hit the line tracer. The behavior is different in different - # versions of Python, so don't run this test: - self.skipTest("Expected failure: peephole optimization of jumps to jumps") + # versions of Python, so be careful when running this test. + if env.PY2: + self.skipTest("Expected failure: peephole optimization of jumps to jumps") self.check_coverage("""\ a = b = c = 0 for n in range(100): @@ -485,7 +486,9 @@ class SimpleStatementTest(CoverageTest): c += 1 assert a == 33 and b == 50 and c == 50 """, - [1,2,3,4,5,6,8,9,10, 12,13,14,15,16,17,19,20,21], "") + lines=[1,2,3,4,5,6,8,9,10, 12,13,14,15,16,17,19,20,21], + missing=["", "6"], + ) def test_import(self): self.check_coverage("""\ |