diff --git a/scripts/gen_docs.py b/scripts/gen_docs.py index 2a6955a15..eb6849986 100644 --- a/scripts/gen_docs.py +++ b/scripts/gen_docs.py @@ -8,7 +8,7 @@ print("Generating documentation...") # Run pydoctor - subprocess.check_call("pydoctor") + subprocess.check_call(["pydoctor", "--quiet"]) # Copy favicon shutil.copyfile( diff --git a/tests/conftest.py b/tests/conftest.py index 05e5399c5..0ee203fb6 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -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"): + print() + + def pytest_addoption(parser): parser.addoption( "-E",