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:
parent
1c70827f33
commit
ec02f694ef
|
@ -451,7 +451,7 @@ class PyCollector(PyobjMixin, pytest.Collector):
|
||||||
seen = {}
|
seen = {}
|
||||||
l = []
|
l = []
|
||||||
for dic in dicts:
|
for dic in dicts:
|
||||||
for name, obj in dic.items():
|
for name, obj in list(dic.items()):
|
||||||
if name in seen:
|
if name in seen:
|
||||||
continue
|
continue
|
||||||
seen[name] = True
|
seen[name] = True
|
||||||
|
|
Loading…
Reference in New Issue