summaryrefslogtreecommitdiff
path: root/testing
diff options
context:
space:
mode:
authorRonny Pfannschmidt <opensource@ronnypfannschmidt.de>2018-05-03 16:33:16 +0200
committerRonny Pfannschmidt <opensource@ronnypfannschmidt.de>2018-05-03 16:33:16 +0200
commita5cf55dd4a5237ad4b5d6e93d9822558bbc8cd28 (patch)
tree2d7580b528616a6d5d767978f3200024f89027fe /testing
parent63ef46dd91d8e320a0e1db226da0b32912e0c8c5 (diff)
downloadpytest-a5cf55dd4a5237ad4b5d6e93d9822558bbc8cd28.tar.gz
fix test_mark_option_custom - it used the legacy keyword storage for addign markers
Diffstat (limited to 'testing')
-rw-r--r--testing/test_mark.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/testing/test_mark.py b/testing/test_mark.py
index 9ec1ce75a..520712895 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():