Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion scripts/gen_docs.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
print("Generating documentation...")

# Run pydoctor
subprocess.check_call("pydoctor")
subprocess.check_call(["pydoctor", "--quiet"])

# Copy favicon
shutil.copyfile(
Expand Down
6 changes: 6 additions & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,12 @@
from tests.helpers.worker import ExternalPythonWorker, ExternalWorker


def pytest_runtest_setup(item):
"""Print a newline so that custom printed output starts on new line."""
if item.config.getoption("-s"):
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: Pytest Capture Status Detection Flaw

The pytest_runtest_setup hook's check for item.config.getoption("-s") doesn't reliably detect when pytest's output capturing is disabled. The -s flag is a shorthand for --capture=no, so checking for it directly may not accurately reflect the capture status.

Fix in Cursor Fix in Web

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I checked that; it does.

print()


def pytest_addoption(parser):
parser.addoption(
"-E",
Expand Down
Loading