Fix python3.7 unittest failure

In python3.7 unittest, there is a failure that the dictionary changed size
during iteration, so fixing it by list instead of dict.

Change-Id: I6ef95e2cc7f49f9d82625e1e5a5ac0f554435465
This commit is contained in:
Hiroyuki JO 2019-08-15 16:56:36 +09:00
parent f9f5765cfb
commit 931b580294
1 changed files with 1 additions and 1 deletions

View File

@ -465,7 +465,7 @@ class ExtensionManager(object):
# is made in a whole iteration
while exts_to_process:
processed_ext_count = len(processed_exts)
for ext_name, ext in exts_to_process.items():
for ext_name, ext in list(exts_to_process.items()):
if not hasattr(ext, 'get_extended_resources'):
del exts_to_process[ext_name]
continue