Skip to content

Commit b2f9557

Browse files
committed
Add importorskip torch
1 parent 890c497 commit b2f9557

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/test_vendoring.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ def test_vendoring_cupy():
1313
uses_cupy._test_cupy()
1414

1515
def test_vendoring_torch():
16+
pytest.importorskip("torch")
17+
1618
from vendor_test import uses_torch
1719
uses_torch._test_torch()
1820

0 commit comments

Comments
 (0)