Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
laughingman7743 committed May 6, 2024
1 parent 4391782 commit 922a4b9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/pyathena/filesystem/test_s3.py
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ def test_ls_dirs(self, fs):
f"filesystem/test_ls_dirs"
)
for i in range(5):
fs.pipe(f"{dir_}/prefix/test_{i}", i.to_bytes())
fs.pipe(f"{dir_}/prefix/test_{i}", bytes(i))
fs.touch(f"{dir_}/prefix2")

assert len(fs.ls(f"{dir_}/prefix")) == 5
Expand Down Expand Up @@ -365,7 +365,7 @@ def test_find(self, fs):
f"filesystem/test_find"
)
for i in range(5):
fs.pipe(f"{dir_}/prefix/test_{i}", i.to_bytes())
fs.pipe(f"{dir_}/prefix/test_{i}", bytes(i))
fs.touch(f"{dir_}/prefix2")

assert len(fs.find(f"{dir_}/prefix")) == 5
Expand Down Expand Up @@ -646,10 +646,10 @@ def test_move(self, fs):
# )
#
# for i in range(10):
# fs.pipe(f"{dir1}test_{i}", i.to_bytes())
# fs.pipe(f"{dir1}test_{i}", bytes(i))
# fs.move(dir1, dir2, recursive=True)
# for i in range(10):
# assert fs.cat(f"{dir2}test_{i}") == i.to_bytes()
# assert fs.cat(f"{dir2}test_{i}") == bytes(i)
# assert not fs.exists(f"{dir1}test_{i}")

def test_get_file(self, fs):
Expand Down

0 comments on commit 922a4b9

Please sign in to comment.