From a06f6b71b4717f7161bb9280d6401da4540ce43a Mon Sep 17 00:00:00 2001 From: Takeshi KOMIYA Date: Sat, 12 Jan 2019 21:08:51 +0900 Subject: [PATCH] Fix an error with pytest-4.x --- tests/test_websupport.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_websupport.py b/tests/test_websupport.py index a174a7106..116beaee5 100644 --- a/tests/test_websupport.py +++ b/tests/test_websupport.py @@ -28,7 +28,7 @@ def test_build(request, rootdir, sphinx_test_tempdir): # each test expect result of db value at previous test case. 'builddir': sphinx_test_tempdir / 'websupport' } - marker = request.node.get_marker('support') + marker = request.node.get_closest_marker('support') if marker: settings.update(marker.kwargs)