mirror of
https://github.com/huggingface/transformers.git
synced 2025-08-02 19:21:31 +06:00
Fix the expected error in test_offline_mode_pipeline_exception
(#23022)
* fix --------- Co-authored-by: ydshieh <ydshieh@users.noreply.github.com>
This commit is contained in:
parent
e28fff18b8
commit
a4908da04e
@ -175,7 +175,8 @@ socket.socket = offline_socket
|
||||
result = subprocess.run(cmd, env=env, check=False, capture_output=True)
|
||||
self.assertEqual(result.returncode, 1, result.stderr)
|
||||
self.assertIn(
|
||||
"You cannot infer task automatically within `pipeline` when using offline mode", result.stderr.decode()
|
||||
"You cannot infer task automatically within `pipeline` when using offline mode",
|
||||
result.stderr.decode().replace("\n", ""),
|
||||
)
|
||||
|
||||
@require_torch
|
||||
|
Loading…
Reference in New Issue
Block a user