Merge pull request #6261 from blueyed/stats-keys
terminal: _get_main_color: help pytest-parallel
This commit is contained in:
commit
0601f5cdad
|
@ -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()
|
"failed passed skipped deselected xfailed xpassed warnings error".split()
|
||||||
)
|
)
|
||||||
unknown_type_seen = False
|
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 not in known_types:
|
||||||
if found_type: # setup/teardown reports have an empty key, ignore them
|
if found_type: # setup/teardown reports have an empty key, ignore them
|
||||||
known_types.append(found_type)
|
known_types.append(found_type)
|
||||||
|
|
Loading…
Reference in New Issue