summaryrefslogtreecommitdiff
path: root/tests/conftest.py
diff options
context:
space:
mode:
authorStephen Finucane <stephen@that.guru>2017-12-22 18:50:49 +0000
committerStephen Finucane <stephen@that.guru>2017-12-29 13:02:07 +0000
commitc33ecd1f8f1ea6eb7e410e91aec754bdd1d1f20a (patch)
treee259637bb3bd19b21def3604e064363fec931996 /tests/conftest.py
parent9348c4bea1bf75184bb4fe2af25c5990d6dcf2c1 (diff)
downloadsphinx-git-c33ecd1f8f1ea6eb7e410e91aec754bdd1d1f20a.tar.gz
tests: Use 'pytest_report_header'
This is the recommended way to print extra headers [1]. [1] https://docs.pytest.org/en/latest/example/simple.html#adding-info-to-test-report-header Signed-off-by: Stephen Finucane <stephen@that.guru>
Diffstat (limited to 'tests/conftest.py')
-rw-r--r--tests/conftest.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/conftest.py b/tests/conftest.py
index 9ea99dbd9..d50d76df0 100644
--- a/tests/conftest.py
+++ b/tests/conftest.py
@@ -26,3 +26,8 @@ if sys.version_info < (3, 5):
@pytest.fixture(scope='session')
def rootdir():
return path(os.path.dirname(__file__) or '.').abspath() / 'roots'
+
+
+def pytest_report_header(config):
+ return 'Running Sphinx test suite (with Python %s)...' % (
+ sys.version.split()[0])