diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2015-12-31 18:24:36 -0500 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2015-12-31 18:24:36 -0500 |
commit | 704fa07b52715720da0f7b2d264ea41fce7441e8 (patch) | |
tree | 750a7e687c0a2734bbb283552770ee52cf16baa5 /tests/test_arcs.py | |
parent | f5acc8c5651287022e5b7d7d98e1be9393674c47 (diff) | |
download | python-coveragepy-git-704fa07b52715720da0f7b2d264ea41fce7441e8.tar.gz |
Support classdef and some async keywords
--HG--
branch : ast-branch
Diffstat (limited to 'tests/test_arcs.py')
-rw-r--r-- | tests/test_arcs.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/tests/test_arcs.py b/tests/test_arcs.py index fd4bd109..08325f6b 100644 --- a/tests/test_arcs.py +++ b/tests/test_arcs.py @@ -260,7 +260,7 @@ class LoopArcTest(CoverageTest): if env.PY3: arcz = ".1 12 23 34 45 36 63 57 7." else: - arcz = ".1 12 23 34 45 36 62 57 7." + arcz = ".1 12 23 27 34 45 36 62 57 7." self.check_coverage("""\ a, i = 1, 0 while True: @@ -271,6 +271,7 @@ class LoopArcTest(CoverageTest): assert a == 4 and i == 3 """, arcz=arcz, + arcz_missing="", ) def test_for_if_else_for(self): @@ -764,7 +765,7 @@ class YieldTest(CoverageTest): def test_coroutines(self): self.check_coverage("""\ def double_inputs(): - while [1]: # avoid compiler differences + while len([1]): # avoid compiler differences x = yield x *= 2 yield x @@ -890,8 +891,9 @@ class AsyncTest(CoverageTest): ".H HI IH HJ J-G " # doit ".5 5-4 " # __init__ ".8 8-7 " # __aiter__ - ".B BC C-A DE ", # __anext__ + ".B BC C-A DE E-A ", # __anext__ arcz_missing="", + arcz_unpredicted="CD", ) self.assertEqual(self.stdout(), "a\nb\nc\n.\n") |