Skip to content

Commit a29fd3d

Browse files
committed
update: test_gsam_optimizers
1 parent 1eb28b3 commit a29fd3d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_optimizers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ def closure():
179179
@pytest.mark.parametrize('adaptive', ADAPTIVE_FLAGS)
180180
def test_gsam_optimizers(adaptive):
181181
if not torch.cuda.is_available():
182-
return True
182+
pytest.skip(f'there\'s no cuda. skip test.')
183183

184184
(x_data, y_data), model, loss_fn = build_environment()
185185

0 commit comments

Comments
 (0)