From 69e7029285d7fd65e238e9d0f03e1f7a2536e5e4 Mon Sep 17 00:00:00 2001 From: jdegenstein Date: Fri, 17 Oct 2025 12:57:18 -0500 Subject: [PATCH] test_occt_bugs.py -> attempt to bypass pytest stdout capture --- tests/test_direct_api/test_occt_bugs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_direct_api/test_occt_bugs.py b/tests/test_direct_api/test_occt_bugs.py index 695f9ef..5847733 100644 --- a/tests/test_direct_api/test_occt_bugs.py +++ b/tests/test_direct_api/test_occt_bugs.py @@ -33,7 +33,7 @@ def expected_to_fail(test_func): warning_message = ( f"::warning file={filename},line={lineno},title=Unexpected Pass::{test_name} passed but was expected to fail" ) - print(warning_message, file=sys.stdout) + print(warning_message, file=sys.__stdout__) # bypass pytest sys.stdout capture # Use pytest.skip to ensure the test is NOT reported as a "pass". pytest.skip("This test passed but was expected to fail.")