Unverified Commit a4908da0 authored by Yih-Dar's avatar Yih-Dar Committed by GitHub
Browse files

Fix the expected error in `test_offline_mode_pipeline_exception` (#23022)



* fix

---------
Co-authored-by: default avatarydshieh <ydshieh@users.noreply.github.com>
parent e28fff18
...@@ -175,7 +175,8 @@ socket.socket = offline_socket ...@@ -175,7 +175,8 @@ socket.socket = offline_socket
result = subprocess.run(cmd, env=env, check=False, capture_output=True) result = subprocess.run(cmd, env=env, check=False, capture_output=True)
self.assertEqual(result.returncode, 1, result.stderr) self.assertEqual(result.returncode, 1, result.stderr)
self.assertIn( 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 @require_torch
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment