Update python.py

updated dictionary itteration to create a list for generation, so that tests can be added in the generator functions under python3. This works fine as-is in python2 because python 2 already creates a list, whereas python3 returns an itterator. Forcing a list format for the return fixes python3 to work the same way as python2
This commit is contained in:
aselus-hub 2015-12-09 11:32:19 -08:00
parent 1c70827f33
commit ec02f694ef
1 changed files with 1 additions and 1 deletions

View File

@ -451,7 +451,7 @@ class PyCollector(PyobjMixin, pytest.Collector):
seen = {}
l = []
for dic in dicts:
for name, obj in dic.items():
for name, obj in list(dic.items()):
if name in seen:
continue
seen[name] = True