fix test_mark_option_custom - it used the legacy keyword storage for addign markers
This commit is contained in:
parent
63ef46dd91
commit
a5cf55dd4a
|
@ -295,7 +295,7 @@ def test_mark_option_custom(spec, testdir):
|
||||||
def pytest_collection_modifyitems(items):
|
def pytest_collection_modifyitems(items):
|
||||||
for item in items:
|
for item in items:
|
||||||
if "interface" in item.nodeid:
|
if "interface" in item.nodeid:
|
||||||
item.keywords["interface"] = pytest.mark.interface
|
item.add_marker(pytest.mark.interface)
|
||||||
""")
|
""")
|
||||||
testdir.makepyfile("""
|
testdir.makepyfile("""
|
||||||
def test_interface():
|
def test_interface():
|
||||||
|
|
Loading…
Reference in New Issue