Fix an error with pytest-4.x

This commit is contained in:
Takeshi KOMIYA
2019-01-12 21:08:51 +09:00
parent be29f73150
commit a06f6b71b4

View File

@@ -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)