From 50b27d27358ee67dfeb395a9a2e2a59633998f78 Mon Sep 17 00:00:00 2001 From: Bruno Oliveira Date: Wed, 21 Nov 2018 19:57:24 -0200 Subject: [PATCH] Skip test which needs pytest_namespace(), removed recently --- testing/acceptance_test.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/testing/acceptance_test.py b/testing/acceptance_test.py index 02f2d20..8a06645 100644 --- a/testing/acceptance_test.py +++ b/testing/acceptance_test.py @@ -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( """