Skip to content

Commit 985ec32

Browse files
authored
Merge pull request #29 from nicoddemus/pytest-namespace-deprecated
Do not use deprecated pytest_namespace() hook
2 parents bdc049f + 55aa314 commit 985ec32

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pytest_lazyfixture.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
string_type = str if PY3 else basestring
1313

1414

15-
def pytest_namespace():
16-
return {'lazy_fixture': lazy_fixture}
15+
def pytest_configure():
16+
pytest.lazy_fixture = lazy_fixture
1717

1818

1919
@pytest.hookimpl(tryfirst=True)

0 commit comments

Comments
 (0)