# see upstream commit: # https://github.com/sphinx-contrib/sphinxcontrib-versioning/commit/91e97376559bb25199120ea1ece93e1b67e843aa --- tests/conftest.py.orig 2020-02-12 09:24:59.000000000 -0500 +++ tests/conftest.py 2020-02-12 09:26:17.000000000 -0500 @@ -45,17 +45,15 @@ return run_command(str(directory), [str(i) for i in command], *args, **kwargs) -def pytest_namespace(): +def pytest_configure(): """Add objects to the pytest namespace. Can be retrieved by importing pytest and accessing pytest.. :return: Namespace dict. :rtype: dict """ - return dict( - author_committer_dates=author_committer_dates, - ROOT_TS=ROOT_TS, - run=run, - ) + pytest.author_committer_dates = author_committer_dates + pytest.ROOT_TS = ROOT_TS + pytest.run = run @pytest.fixture