Skip to content

Commit

Permalink
fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
zhouzaida committed Oct 11, 2021
1 parent e79f579 commit 3df6d0c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_utils/test_hub.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ def test_load_url():
# checkpoint saved in high version of PyTorch
if digit_version(TORCH_VERSION) < digit_version('1.7.0'):
with pytest.raises(RuntimeError):
model_zoo.load_url(url1)
model_zoo.load_url(url2)
model_zoo.load_url(url2)
model_zoo.load_url(url1)
else:
# high version of PyTorch can load checkpoints from url, regardless
# of which version they were saved in
Expand Down

0 comments on commit 3df6d0c

Please sign in to comment.