Skip to content

Commit

Permalink
US47068 fixed problem with "RuntimeError: dictionary changed size dur…
Browse files Browse the repository at this point in the history
…ing iteration"
  • Loading branch information
jaroslavlibak committed Apr 24, 2023
1 parent 5d4504e commit 9bc6204
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions bzt/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -285,9 +285,10 @@ def perform(self, configs):
self.handle_exception(exc)

if self.options.verbose:
for module_name in sys.modules:
version = str(getattr(sys.modules[module_name], '__version__', ""))
file = getattr(sys.modules[module_name], '__file__', "")
modules = sys.modules.copy()
for module_name in modules:
version = str(getattr(modules[module_name], '__version__', ""))
file = getattr(modules[module_name], '__file__', "")

Check warning on line 291 in bzt/cli.py

View check run for this annotation

Codecov / codecov/patch

bzt/cli.py#L288-L291

Added lines #L288 - L291 were not covered by tests
if version:
module_name = "-".join((module_name, version))
self.log.debug("\t{}\t{}".format(module_name, file))
Expand Down

0 comments on commit 9bc6204

Please sign in to comment.