From a5cf55dd4a5237ad4b5d6e93d9822558bbc8cd28 Mon Sep 17 00:00:00 2001 From: Ronny Pfannschmidt Date: Thu, 3 May 2018 16:33:16 +0200 Subject: [PATCH] fix test_mark_option_custom - it used the legacy keyword storage for addign markers --- testing/test_mark.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testing/test_mark.py b/testing/test_mark.py index 9ec1ce75a99..520712895a7 100644 --- a/testing/test_mark.py +++ b/testing/test_mark.py @@ -295,7 +295,7 @@ def test_mark_option_custom(spec, testdir): def pytest_collection_modifyitems(items): for item in items: if "interface" in item.nodeid: - item.keywords["interface"] = pytest.mark.interface + item.add_marker(pytest.mark.interface) """) testdir.makepyfile(""" def test_interface():