diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2012-10-29 12:33:50 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2012-10-29 12:33:50 -0400 |
commit | 9790c911ffcd9936f399ea830e669f6241a38fd2 (patch) | |
tree | d67ea2a9028f1dd6170482865ffd8eaf7eb1ee5c | |
parent | 8804c84df66576394cd9eb81a83818abf632d3c9 (diff) | |
download | python-coveragepy-git-9790c911ffcd9936f399ea830e669f6241a38fd2.tar.gz |
py3 is strict about modifying lists you're iterating.
-rw-r--r-- | test/test_api.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test_api.py b/test/test_api.py index 83f82f12..a832c035 100644 --- a/test/test_api.py +++ b/test/test_api.py @@ -434,7 +434,7 @@ class SourceOmitIncludeTest(OmitIncludeTestsMixin, CoverageTest): import usepkgs # pylint: disable=F0401,W0612 cov.stop() summary = cov.data.summary() - for k, v in summary.items(): + for k, v in list(summary.items()): assert k.endswith(".py") summary[k[:-3]] = v return summary |