mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Merge pull request #5996 from tk0miya/show_tempdir_header_on_testing
Show tempdir header on testing (refs: #5902)
This commit is contained in:
@@ -27,8 +27,12 @@ def rootdir():
|
||||
|
||||
|
||||
def pytest_report_header(config):
|
||||
return ("libraries: Sphinx-%s, docutils-%s" %
|
||||
(sphinx.__display_version__, docutils.__version__))
|
||||
header = ("libraries: Sphinx-%s, docutils-%s" %
|
||||
(sphinx.__display_version__, docutils.__version__))
|
||||
if hasattr(config, '_tmp_path_factory'):
|
||||
header += "\nbase tempdir: %s" % config._tmp_path_factory.getbasetemp()
|
||||
|
||||
return header
|
||||
|
||||
|
||||
def pytest_assertrepr_compare(op, left, right):
|
||||
|
||||
Reference in New Issue
Block a user