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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user