From 07b65dea5400f0954f305c3439e8072c90052ce6 Mon Sep 17 00:00:00 2001 From: Evgeniy Blinov Date: Sun, 18 Aug 2024 11:42:47 +0300 Subject: [PATCH] fixed a windows test --- tests/documentation/test_quick_start.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/documentation/test_quick_start.py b/tests/documentation/test_quick_start.py index 707669b..6981e8d 100644 --- a/tests/documentation/test_quick_start.py +++ b/tests/documentation/test_quick_start.py @@ -29,7 +29,8 @@ def test_run_hello_world_windows(): stdout_buffer = StringIO() with redirect_stdout(stdout_buffer), redirect_stderr(stderr_buffer): - result = suby('python -c "print^(\'hello, world^!\'^)"') + result = suby('python -c "print^(\'hello, world^!\'^)"', catch_exceptions=True) + print(result) assert stderr_buffer.getvalue() == '' assert stdout_buffer.getvalue() == 'hello, world!\n'