mirror of
https://github.com/hwchase17/langchain.git
synced 2025-06-18 12:58:59 +00:00
Fix bash test regex for Linux under WSL2. (#9475)
It fails with `Permission denied` and not `not found`. Both seem reasonable.
This commit is contained in:
parent
0808949e54
commit
be9bc62f8b
@ -56,7 +56,9 @@ def test_incorrect_command_return_err_output() -> None:
|
|||||||
"""Test optional returning of shell output on incorrect command."""
|
"""Test optional returning of shell output on incorrect command."""
|
||||||
session = BashProcess(return_err_output=True)
|
session = BashProcess(return_err_output=True)
|
||||||
output = session.run(["invalid_command"])
|
output = session.run(["invalid_command"])
|
||||||
assert re.match(r"^/bin/sh:.*invalid_command.*not found.*$", output)
|
assert re.match(
|
||||||
|
r"^/bin/sh:.*invalid_command.*(?:not found|Permission denied).*$", output
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.skipif(
|
@pytest.mark.skipif(
|
||||||
|
Loading…
Reference in New Issue
Block a user