Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
kephale committed May 31, 2024
1 parent f734c94 commit 6b3abf7
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions tests/test_sshfs.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,9 @@ def test_fsspec_registration(ssh_server):

def test_fsspec_url_parsing(ssh_server, remote_dir, user="user"):
for ep in pkg_resources.iter_entry_points(group="fsspec.specs"):
url = f"{ep.name}://{user}@{ssh_server.host}:{ssh_server.port}/{remote_dir}/file"
url = (
f"{ep.name}://{user}@{ssh_server.host}:{ssh_server.port}/{remote_dir}/file"
)
with fsspec.open(url, "w", client_keys=[USERS[user]]) as file:
# Check the underlying file system.
file_fs = file.buffer.fs
Expand Down Expand Up @@ -296,7 +298,6 @@ def read_random_file(name):
return stream.read()

with futures.ThreadPoolExecutor() as executor:

write_futures, _ = futures.wait(
[executor.submit(create_random_file) for _ in range(64)],
return_when=futures.ALL_COMPLETED,
Expand Down Expand Up @@ -370,4 +371,6 @@ def test_pipe_file(fs, remote_dir):
fs.pipe_file(test_file_path, test_data)

with fs.open(test_file_path, "rb") as f:
assert f.read() == test_data, "The data read from the file does not match the data written."
assert (
f.read() == test_data
), "The data read from the file does not match the data written."

0 comments on commit 6b3abf7

Please sign in to comment.