Skip to content

Commit 0601f5c

Browse files
authored
Merge pull request #6261 from blueyed/stats-keys
terminal: _get_main_color: help pytest-parallel
2 parents a7268aa + 1f736a6 commit 0601f5c

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

changelog/6254.bugfix.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fix compatibility with pytest-parallel (regression in pytest 5.3.0).

src/_pytest/terminal.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1099,7 +1099,7 @@ def _get_main_color(stats) -> Tuple[str, List[str]]:
10991099
"failed passed skipped deselected xfailed xpassed warnings error".split()
11001100
)
11011101
unknown_type_seen = False
1102-
for found_type in stats:
1102+
for found_type in stats.keys():
11031103
if found_type not in known_types:
11041104
if found_type: # setup/teardown reports have an empty key, ignore them
11051105
known_types.append(found_type)

0 commit comments

Comments
 (0)