Skip to content

Commit d1a5f85

Browse files
Simplify a test variable and a comment
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent 366e50c commit d1a5f85

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

‎pyathena/filesystem/s3.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1403,7 +1403,7 @@ def touch(self, path: str, truncate: bool = True, **kwargs) -> dict[str, Any]:
14031403
raise ValueError("Cannot touch the bucket.")
14041404

14051405
# The empty body is passed, so that a body keyword argument raises
1406-
# TypeError, as it did before.
1406+
# TypeError.
14071407
object_ = self.core.put_object(s3_path, None, **kwargs)
14081408
self.invalidate_cache(path)
14091409
return object_.to_dict()

‎tests/pyathena/filesystem/test_s3.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2340,8 +2340,8 @@ def test_pipe_file_compression(self, path, compression, key, intrans, size):
23402340
fs.pipe_file(path, value, compression=compression)
23412341

23422342
# The compressed value fits in one block.
2343-
(((path, body), kwargs),) = fs.core.put_object.call_args_list
2344-
assert path.key == key
2343+
(((s3_path, body), kwargs),) = fs.core.put_object.call_args_list
2344+
assert s3_path.key == key
23452345
assert "compression" not in kwargs
23462346
assert gzip.decompress(body) == value
23472347

0 commit comments

Comments
 (0)