Skip to content

Deprecate get_marker. Use get_closest_marker instead #146

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 7, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions test/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,8 @@ def instance_type(request, processor):
@pytest.fixture(autouse=True)
def skip_by_device_type(request, processor):
is_gpu = (processor == 'gpu')
if (request.node.get_marker('skip_gpu') and is_gpu) or \
(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):
pytest.skip('Skipping because running on \'{}\' instance'.format(processor))


Expand Down