diff --git a/testing/test_pdb.py b/testing/test_pdb.py index 53475078ec4..fbf34480734 100644 --- a/testing/test_pdb.py +++ b/testing/test_pdb.py @@ -506,7 +506,7 @@ def function_1(): rest = child.read().decode("utf8") assert "! _pytest.outcomes.Exit: Quitting debugger !" in rest - assert "= no tests ran in" in rest + assert "= \x1b[33mno tests ran\x1b[0m\x1b[33m in" in rest assert "BdbQuit" not in rest assert "UNEXPECTED EXCEPTION" not in rest