Skip to content

Commit 33f6370

Browse files
authored
Use get_closest_marker instead of get_marker (#147)
1 parent 560fbca commit 33f6370

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/integ/test_gpu_devices.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
@pytest.fixture(autouse=True)
2121
def skip_cpu(request, processor):
22-
if request.node.get_marker('skip_cpu') and processor == 'cpu':
22+
if request.node.get_closest_marker('skip_cpu') and processor == 'cpu':
2323
pytest.skip('Skipping because we are running cpu image.')
2424

2525

0 commit comments

Comments
 (0)