summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2015-12-31 16:39:17 -0500
committerNed Batchelder <ned@nedbatchelder.com>2015-12-31 16:39:17 -0500
commitf5acc8c5651287022e5b7d7d98e1be9393674c47 (patch)
tree4da67f7d9148f7cf1398903e32de132f87ec92e5 /tests
parent5a6627ce5050d331095c4b03aed8e540f3ed651f (diff)
downloadpython-coveragepy-git-f5acc8c5651287022e5b7d7d98e1be9393674c47.tar.gz
Support exception arcs on py2, where the ast still has separate TryExcept and TryFinally nodes
--HG-- branch : ast-branch
Diffstat (limited to 'tests')
-rw-r--r--tests/test_arcs.py8
1 files changed, 2 insertions, 6 deletions
diff --git a/tests/test_arcs.py b/tests/test_arcs.py
index a371401f..fd4bd109 100644
--- a/tests/test_arcs.py
+++ b/tests/test_arcs.py
@@ -562,10 +562,6 @@ class ExceptionArcTest(CoverageTest):
# "except Exception as e" is crucial here.
def test_bug_212(self):
- # Run this test only on Py2 for now. I hope to fix it on Py3
- # eventually...
- if env.PY3:
- self.skip("This doesn't work on Python 3")
self.check_coverage("""\
def b(exc):
try:
@@ -582,8 +578,8 @@ class ExceptionArcTest(CoverageTest):
except:
pass
""",
- arcz=".1 .2 1A 23 34 56 67 68 8. AB BC C. DE E.",
- arcz_missing="C.", arcz_unpredicted="45 7. CD")
+ arcz=".1 .2 1A 23 34 45 56 67 68 7. 8. AB BC C. DE E.",
+ arcz_missing="C.", arcz_unpredicted="CD")
def test_except_finally(self):
self.check_coverage("""\