Merge pull request #6261 from blueyed/stats-keys
terminal: _get_main_color: help pytest-parallel
This commit is contained in:
1
changelog/6254.bugfix.rst
Normal file
1
changelog/6254.bugfix.rst
Normal file
@@ -0,0 +1 @@
|
||||
Fix compatibility with pytest-parallel (regression in pytest 5.3.0).
|
||||
@@ -1099,7 +1099,7 @@ def _get_main_color(stats) -> Tuple[str, List[str]]:
|
||||
"failed passed skipped deselected xfailed xpassed warnings error".split()
|
||||
)
|
||||
unknown_type_seen = False
|
||||
for found_type in stats:
|
||||
for found_type in stats.keys():
|
||||
if found_type not in known_types:
|
||||
if found_type: # setup/teardown reports have an empty key, ignore them
|
||||
known_types.append(found_type)
|
||||
|
||||
Reference in New Issue
Block a user