Skip to content

Commit

Permalink
[require_read_token] fix typo (#29345)
Browse files Browse the repository at this point in the history
fix wrapper
  • Loading branch information
ArthurZucker authored Feb 28, 2024
1 parent e715c78 commit a528885
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/transformers/testing_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,7 @@ def require_read_token(fn):

@wraps(fn)
def _inner(*args, **kwargs):
with patch(huggingface_hub.utils._headers, "get_token", return_value=token):
with patch.object(huggingface_hub.utils._headers, "get_token", return_value=token):
return fn(*args, **kwargs)

return _inner
Expand Down

0 comments on commit a528885

Please sign in to comment.