From 93304e5a1b6167a52d9fb3cd720a9ac7eea13da1 Mon Sep 17 00:00:00 2001 From: KOBAYASHI Jun Date: Tue, 23 May 2023 18:44:27 +0900 Subject: [PATCH] fix: Listing of dictionaries (modules) (#1726) --- bzt/cli.py | 2 +- site/dat/docs/changes/fix-update-cli.change | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 site/dat/docs/changes/fix-update-cli.change diff --git a/bzt/cli.py b/bzt/cli.py index 72c158b53b..67462855e1 100755 --- a/bzt/cli.py +++ b/bzt/cli.py @@ -286,7 +286,7 @@ def perform(self, configs): if self.options.verbose: modules = sys.modules.copy() - for module_name in modules: + for module_name in list(modules): version = str(getattr(modules[module_name], '__version__', "")) file = getattr(modules[module_name], '__file__', "") if version: diff --git a/site/dat/docs/changes/fix-update-cli.change b/site/dat/docs/changes/fix-update-cli.change new file mode 100644 index 0000000000..81940c524f --- /dev/null +++ b/site/dat/docs/changes/fix-update-cli.change @@ -0,0 +1 @@ +Fix cli.py update. loop/dictionary errors