From 4b7ada8c27e6b7b9804e078c838252181a18975e Mon Sep 17 00:00:00 2001 From: Nathan Page Date: Sun, 25 Oct 2020 17:07:51 -0400 Subject: [PATCH] remove carriage return for windows testing --- tests/test_live.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/test_live.py b/tests/test_live.py index 284cd65a..5f83bf10 100644 --- a/tests/test_live.py +++ b/tests/test_live.py @@ -37,7 +37,9 @@ def check_output(output_file: str, output: str) -> None: correct_output = get_capture_text("live", output_file) - assert output == correct_output, "Console output differs from the correct output" + assert output.replace("\r", "") == correct_output.replace( + "\r", "" + ), "Console output differs from the correct output" @pytest.mark.skipif(sys.version_info < (3, 7), reason="requires python3.7 or higher")