diff --git a/tests/test_rich_utils.py b/tests/test_rich_utils.py index 3cc3ad0d19..2f0c1ff3d8 100644 --- a/tests/test_rich_utils.py +++ b/tests/test_rich_utils.py @@ -170,5 +170,6 @@ def print_rich_data(): result = runner.invoke(app, []) assert result.exit_code == 0 - output = non_ascii_dots(result.stdout) - assert output.startswith(non_ascii_dots(CONFIGED_TEXT)) + output = non_ascii_dots(result.stdout).rstrip("\r\n").strip() + expected = non_ascii_dots(CONFIGED_TEXT).rstrip("\r\n").strip() + assert output == expected