From 3da87273a2a6b9f8149f07f28686c4c9c8801647 Mon Sep 17 00:00:00 2001 From: Nathan Page Date: Sun, 25 Oct 2020 16:01:58 -0400 Subject: [PATCH] add a diff to see what is wrong in ubuntu test --- tests/test_live.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/test_live.py b/tests/test_live.py index 5b0f67b4..7bce92ab 100644 --- a/tests/test_live.py +++ b/tests/test_live.py @@ -1,3 +1,4 @@ +import difflib import io import os @@ -37,6 +38,11 @@ def check_output(output_file: str, output: str) -> None: print("Make sure your console is tall enough or it may look odd") print("Current Output:\n", output) print("Correct Output:\n", correct_output) + + if output != correct_output: + difflib.unified_diff( + correct_output, output, fromfile="Correct Output", tofile="Current Output" + ) assert output == correct_output, "Console output differs from the correct output"