diff --git a/changelog/6254.bugfix.rst b/changelog/6254.bugfix.rst new file mode 100644 index 000000000..a278a85ed --- /dev/null +++ b/changelog/6254.bugfix.rst @@ -0,0 +1 @@ +Fix compatibility with pytest-parallel (regression in pytest 5.3.0). diff --git a/src/_pytest/terminal.py b/src/_pytest/terminal.py index 40e12e406..e88545eca 100644 --- a/src/_pytest/terminal.py +++ b/src/_pytest/terminal.py @@ -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)