mirror of
https://github.com/Textualize/rich.git
synced 2025-08-04 01:58:24 +00:00
remove unhelpful difflib print
This commit is contained in:
parent
9e110425a4
commit
bdbd05e46b
1 changed files with 1 additions and 13 deletions
|
@ -1,4 +1,3 @@
|
|||
import difflib
|
||||
import io
|
||||
import os
|
||||
|
||||
|
@ -36,17 +35,6 @@ def check_output(output_file: str, output: str) -> None:
|
|||
|
||||
correct_output = get_capture_text("live", output_file)
|
||||
|
||||
if output != correct_output:
|
||||
print("The difference between these two files")
|
||||
print(
|
||||
difflib.unified_diff(
|
||||
correct_output,
|
||||
output,
|
||||
fromfile="Correct Output",
|
||||
tofile="Current Output",
|
||||
)
|
||||
)
|
||||
|
||||
assert output == correct_output, "Console output differs from the correct output"
|
||||
|
||||
|
||||
|
@ -114,7 +102,7 @@ def test_growing_table_logging() -> None:
|
|||
table = create_base_table()
|
||||
|
||||
with console.capture() as capture, Live(table, console=console):
|
||||
for step in range(20):
|
||||
for step in range(21):
|
||||
console.print(f"Attempting Step #{step}")
|
||||
table.add_row(f"{step}", f"{step}", f"{step}")
|
||||
output = capture.get()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue