mirror of
https://github.com/gumyr/build123d.git
synced 2025-12-06 10:41:20 -08:00
test_occt_bugs.py -> attempt to bypass pytest stdout capture
This commit is contained in:
parent
45976ff2b0
commit
69e7029285
1 changed files with 1 additions and 1 deletions
|
|
@ -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.")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue