From 922a4b91b315e0f842c63e9111bda72bb59d4190 Mon Sep 17 00:00:00 2001 From: laughingman7743 Date: Mon, 6 May 2024 17:13:11 +0900 Subject: [PATCH] fixup --- tests/pyathena/filesystem/test_s3.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/pyathena/filesystem/test_s3.py b/tests/pyathena/filesystem/test_s3.py index 6144f129..5a013eff 100644 --- a/tests/pyathena/filesystem/test_s3.py +++ b/tests/pyathena/filesystem/test_s3.py @@ -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 @@ -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 @@ -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):