Skip to content

Commit

Permalink
Merge branch 'feet/requires' of https://github.com/PyTorchLightning/l…
Browse files Browse the repository at this point in the history
…ightning-bolts into feet/requires
  • Loading branch information
Borda committed Jul 12, 2023
2 parents d167f07 + 5e666e6 commit 5c0425b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/utils/test_dependency.py
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
import pytest

from pl_bolts.utils.dependency import requires


@requires("torch")
def using_torch():
return True


@requires("torch.anything.wrong")
def using_torch_wrong_path():
return True


@requires("torch>99.0")
def using_torch_bad_version():
return True
Expand Down

0 comments on commit 5c0425b

Please sign in to comment.