Skip to content

Commit 02322ad

Browse files
authored
pytest and pydoctor QOL improvements (#1124)
* pytest qol * pydoctor --quiet
1 parent e92514a commit 02322ad

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

scripts/gen_docs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
print("Generating documentation...")
99

1010
# Run pydoctor
11-
subprocess.check_call("pydoctor")
11+
subprocess.check_call(["pydoctor", "--quiet"])
1212

1313
# Copy favicon
1414
shutil.copyfile(

tests/conftest.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,12 @@
4242
from tests.helpers.worker import ExternalPythonWorker, ExternalWorker
4343

4444

45+
def pytest_runtest_setup(item):
46+
"""Print a newline so that custom printed output starts on new line."""
47+
if item.config.getoption("-s"):
48+
print()
49+
50+
4551
def pytest_addoption(parser):
4652
parser.addoption(
4753
"-E",

0 commit comments

Comments
 (0)