Skip to content

Commit 4597400

Browse files
committed
Implementing greptile feedback
1 parent d2856cc commit 4597400

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cuda_bindings/tests/test_graphics_apis.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@
44
import pytest
55
from cuda.bindings import runtime as cudart
66

7+
from helpers import IS_WSL
78

9+
@pytest.mark.skipif(IS_WSL, reason="Graphics interop not supported on this platform")
810
def test_graphics_api_smoketest():
911
# Due to lazy importing in pyglet, pytest.importorskip doesn't work
1012
try:
@@ -26,6 +28,7 @@ def test_graphics_api_smoketest():
2628
assert error_name in ("cudaErrorInvalidValue", "cudaErrorUnknown", "cudaErrorOperatingSystem")
2729

2830

31+
@pytest.mark.skipif(IS_WSL, reason="Graphics interop not supported on this platform")
2932
def test_cuda_register_image_invalid():
3033
"""Exercise cudaGraphicsGLRegisterImage with dummy handle only using CUDA runtime API."""
3134
fake_gl_texture_id = 1

0 commit comments

Comments
 (0)