Skip to content
This repository has been archived by the owner on Dec 16, 2022. It is now read-only.

Commit

Permalink
HF now raises ValueError (#5464)
Browse files Browse the repository at this point in the history
  • Loading branch information
dirkgr authored Nov 12, 2021
1 parent 4f9030f commit 54b92ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/common/push_to_hub_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ def test_push_to_hub_to_org(self):
@with_staging_testing
def test_push_to_hub_fails_with_invalid_token(self):
serialization_dir = self.FIXTURES_ROOT / "simple_tagger" / "serialization"
with pytest.raises(requests.exceptions.HTTPError):
with pytest.raises(ValueError):
push_to_hf(
repo_name=REPO_NAME,
serialization_dir=serialization_dir,
Expand Down

0 comments on commit 54b92ae

Please sign in to comment.