From fd77772fbea152a54c1ad9ba71c92c6ec8fb4599 Mon Sep 17 00:00:00 2001 From: Will McGugan Date: Sat, 26 Feb 2022 21:14:53 +0000 Subject: [PATCH] different on win --- tests/test_tree.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_tree.py b/tests/test_tree.py index 3019c1c8..c8465a97 100644 --- a/tests/test_tree.py +++ b/tests/test_tree.py @@ -91,10 +91,10 @@ def test_render_tree_win32(): width=20, force_terminal=True, color_system="standard", legacy_windows=True ) console.begin_capture() - console.print(tree, justify="left") + console.print(tree) result = console.end_capture() print(repr(result)) - expected = "foo \n├── \x1b[3mbar \x1b[0m \n\x1b[44m├── \x1b[0m\x1b[44mbaz \x1b[0m \n\x1b[44m│ \x1b[0m\x1b[31;44m├── \x1b[0m\x1b[44m1\x1b[0m \n\x1b[44m│ \x1b[0m\x1b[31;44m└── \x1b[0m\x1b[44m2\x1b[0m \n└── egg \n" + expected = "foo\n├── \x1b[3mbar\x1b[0m\n\x1b[44m├── \x1b[0m\x1b[44mbaz\x1b[0m\n\x1b[44m│ \x1b[0m\x1b[31;44m├── \x1b[0m\x1b[44m1\x1b[0m\n\x1b[44m│ \x1b[0m\x1b[31;44m└── \x1b[0m\x1b[44m2\x1b[0m\n└── egg\n" assert result == expected