We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a9e4359 commit a4e6cfaCopy full SHA for a4e6cfa
test/conftest.py
@@ -96,8 +96,8 @@ def instance_type(request, processor):
96
@pytest.fixture(autouse=True)
97
def skip_by_device_type(request, processor):
98
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):
+ if (request.node.get_closest_marker('skip_gpu') and is_gpu) or \
+ (request.node.get_closest_marker('skip_cpu') and not is_gpu):
101
pytest.skip('Skipping because running on \'{}\' instance'.format(processor))
102
103
0 commit comments