[diffoscope] 01/02: tests.conftest: Use pytest_configure hook intead of abusing import time.
Chris Lamb
chris at chris-lamb.co.uk
Tue Apr 4 15:36:11 CEST 2017
This is an automated email from the git hooks/post-receive script.
lamby pushed a commit to branch experimental
in repository diffoscope.
commit ee3ada3a482ddae1cba2dbb10b284636e6131926
Author: Chris Lamb <lamby at debian.org>
Date: Tue Apr 4 15:34:14 2017 +0200
tests.conftest: Use pytest_configure hook intead of abusing import time.
---
tests/conftest.py | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/tests/conftest.py b/tests/conftest.py
index d696edb..fa14ee4 100644
--- a/tests/conftest.py
+++ b/tests/conftest.py
@@ -25,12 +25,14 @@ from diffoscope.locale import set_locale
from diffoscope.progress import ProgressManager
from diffoscope.comparators import ComparatorManager
-# Ensure set_path fixture runs before all tests.
-set_path()
# Ensure set_locale fixture runs before each test.
set_locale = pytest.fixture(autouse=True, scope='session')(set_locale)
+def pytest_configure(config):
+ # Ensure set_path fixture runs before all tests.
+ set_path()
+
@pytest.fixture(autouse=True)
def reload_comparators():
# Reload Comparators after every test so we are always in a consistent
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/diffoscope.git
More information about the diffoscope
mailing list