diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2021-02-02 10:53:27 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-02 10:53:27 -0500 |
commit | b7160a896252bb92ffe921a37e3cde98c5cb78b9 (patch) | |
tree | a0edae6ca0996217b9f0fa3213f824eab8b1cbe1 /tests/test_arcs.py | |
parent | 35d91c7aa186a84d0edb333bad60b520f3b1d719 (diff) | |
parent | 80c021d9174e7ae3e5183f1902903fb90a891246 (diff) | |
download | python-coveragepy-git-b7160a896252bb92ffe921a37e3cde98c5cb78b9.tar.gz |
Merge pull request #1113 from nedbat/nedbat/capsys
More unittest removal
Diffstat (limited to 'tests/test_arcs.py')
-rw-r--r-- | tests/test_arcs.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/test_arcs.py b/tests/test_arcs.py index 3b63bcc2..66777751 100644 --- a/tests/test_arcs.py +++ b/tests/test_arcs.py @@ -1370,7 +1370,8 @@ class MiscArcTest(CoverageTest): # opcodes. # Note that we no longer interpret bytecode at all, but it couldn't # hurt to keep the test... - for n in [10, 50, 100, 500, 1000, 2000]: + sizes = [10, 50, 100, 500, 1000, 2000] + for n in sizes: code = """\ data = [ """ + "".join("""\ @@ -1383,7 +1384,7 @@ class MiscArcTest(CoverageTest): print(len(data)) """ self.check_coverage(code, arcs=[(-1, 1), (1, 2*n+4), (2*n+4, -1)]) - assert self.stdout().split()[-1] == str(n) + assert self.stdout().split() == [str(n) for n in sizes] def test_partial_generators(self): # https://github.com/nedbat/coveragepy/issues/475 |