Skip to content

Commit

Permalink
Change to check=True for subprocess
Browse files Browse the repository at this point in the history
  • Loading branch information
Skylion007 committed Jan 16, 2024
1 parent 84b2bdd commit cd48c84
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion fsspec/tests/test_fuse.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ def test_chmod(mount_local):
["cp", str(mount_dir / "text"), str(mount_dir / "new")],
stdout=subprocess.PIPE,
stderr=subprocess.PIPE,
check=False,
check=True,
)

assert cp.stderr == b""
Expand Down
2 changes: 1 addition & 1 deletion fsspec/tests/test_spec.py
Original file line number Diff line number Diff line change
Expand Up @@ -1147,7 +1147,7 @@ def test_posix_tests_bash_stat(path, expected, glob_files_folder):
f"cd {glob_files_folder} && shopt -s globstar && stat -c %N {bash_path}",
],
capture_output=True,
check=False,
check=True,
)
# Remove the last element always empty
bash_output = bash_output.stdout.decode("utf-8").replace("'", "").split("\n")[:-1]
Expand Down

0 comments on commit cd48c84

Please sign in to comment.