]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
qa/tasks/s3tests_java.py: do not change a dict while iterating it
authorKefu Chai <kchai@redhat.com>
Mon, 6 Apr 2020 14:41:10 +0000 (22:41 +0800)
committerKefu Chai <kchai@redhat.com>
Sun, 14 Jun 2020 08:34:52 +0000 (16:34 +0800)
commite75488bfb243b6861230a209e001df067332f0c7
treec48e6f5e900c9de81a5f9e3d606ffee4d7f217e0
parent4cebdb5674862dc63c5a893822195570c5499f04
qa/tasks/s3tests_java.py: do not change a dict while iterating it

in Python3, dict.items() returns a view instead of an instance of list,
so we have to materialize the view for changing the dict being iterated.

Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit dcecf1dbe4e456c060259b8591a887abc1f228bd)
qa/tasks/s3tests_java.py