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 | 30f035760bd34dc45c0303affa55820540c40c5a (patch) | |
tree | 4a0857c8a05a7a7ba2174d08050361cfb0bb42f7 | |
parent | 4812ba56ac2638e760027c78c7739bcc4f65bb6b (diff) | |
download | python-coveragepy-30f035760bd34dc45c0303affa55820540c40c5a.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 83f82f1..a832c03 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 |