mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Improve pytest header
This commit is contained in:
parent
8f253cfb8e
commit
48427ae57a
@ -61,8 +61,7 @@ if __version__.endswith('+'):
|
||||
__version__ = __version__[:-1] # remove '+' for PEP-440 version spec.
|
||||
try:
|
||||
import subprocess
|
||||
p = subprocess.Popen(['git', 'show', '-s', '--pretty=format:%h',
|
||||
path.join(package_dir, '..')],
|
||||
p = subprocess.Popen(['git', 'show', '-s', '--pretty=format:%h'],
|
||||
stdout=subprocess.PIPE, stderr=subprocess.PIPE)
|
||||
out, err = p.communicate()
|
||||
if out:
|
||||
|
@ -11,8 +11,10 @@ import os
|
||||
import shutil
|
||||
import sys
|
||||
|
||||
import docutils
|
||||
import pytest
|
||||
|
||||
import sphinx
|
||||
from sphinx.testing.path import path
|
||||
|
||||
pytest_plugins = 'sphinx.testing.fixtures'
|
||||
@ -34,8 +36,8 @@ def rootdir():
|
||||
|
||||
|
||||
def pytest_report_header(config):
|
||||
return 'Running Sphinx test suite (with Python %s)...' % (
|
||||
sys.version.split()[0])
|
||||
return ("libraries: Sphinx-%s, docutils-%s" %
|
||||
(sphinx.__display_version__, docutils.__version__))
|
||||
|
||||
|
||||
def _initialize_test_directory(session):
|
||||
|
Loading…
Reference in New Issue
Block a user