diff --git a/tests/conftest.py b/tests/conftest.py index cf34f75d5..892a91912 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -107,7 +107,7 @@ def pytest_collection_modifyitems(items): http://pytest.org/latest/plugins.html """ for item in items: - if 'qtbot' in item.fixturenames: + if 'qtbot' in getattr(item, 'fixturenames', ()): item.add_marker('gui')