Skip to content

Commit

Permalink
Fix version check
Browse files Browse the repository at this point in the history
  • Loading branch information
stes committed Oct 27, 2024
1 parent e228180 commit 922b2cb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,8 @@ def test_version_check(version, raises):
cebra.models.model._check_torch_version(raise_error=True)


def test_version_check_2():
raises = not cebra.models.model._check_torch_version(raise_error=False)
def test_version_check_dropout_available():
raises = cebra.models.model._check_torch_version(raise_error=False)
if raises:
assert len(cebra.models.get_options("*dropout*")) == 0
else:
Expand Down

0 comments on commit 922b2cb

Please sign in to comment.