Skip test which needs pytest_namespace(), removed recently

This commit is contained in:
Bruno Oliveira
2018-11-21 19:57:24 -02:00
parent f2061875e1
commit 50b27d2735

View File

@@ -611,6 +611,11 @@ def test_skipping(testdir):
def test_issue34_pluginloading_in_subprocess(testdir):
import _pytest.hookspec
if not hasattr(_pytest.hookspec, "pytest_namespace"):
pytest.skip("this pytest version no longer supports pytest_namespace()")
testdir.tmpdir.join("plugin123.py").write(
textwrap.dedent(
"""