Skip to content

Commit a4e6cfa

Browse files
authored
Deprecate get_marker. Use get_closest_marker instead (#146)
1 parent a9e4359 commit a4e6cfa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/conftest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,8 @@ def instance_type(request, processor):
9696
@pytest.fixture(autouse=True)
9797
def skip_by_device_type(request, processor):
9898
is_gpu = (processor == 'gpu')
99-
if (request.node.get_marker('skip_gpu') and is_gpu) or \
100-
(request.node.get_marker('skip_cpu') and not is_gpu):
99+
if (request.node.get_closest_marker('skip_gpu') and is_gpu) or \
100+
(request.node.get_closest_marker('skip_cpu') and not is_gpu):
101101
pytest.skip('Skipping because running on \'{}\' instance'.format(processor))
102102

103103

0 commit comments

Comments
 (0)