From c49e906cc3b49fc6e83610d02a3bf44e2c79f534 Mon Sep 17 00:00:00 2001 From: Itamar Hindi Date: Wed, 6 Dec 2023 18:54:08 -0500 Subject: [PATCH] Added additional testing to confirm stdout and stderr in result and not log --- testing/test_terminal.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/testing/test_terminal.py b/testing/test_terminal.py index 05f37a9ab..1473d6e75 100644 --- a/testing/test_terminal.py +++ b/testing/test_terminal.py @@ -1665,6 +1665,11 @@ def pytest_report_header(config, start_path): assert "!stderr!" not in result assert "!log!" in result + result = pytester.runpytest("--show-capture=stdio", "--tb=short").stdout.str() + assert "!stdout!" in result + assert "!stderr!" in result + assert "!log!" not in result + result = pytester.runpytest("--show-capture=no", "--tb=short").stdout.str() assert "!stdout!" not in result assert "!stderr!" not in result