Skip to content

Commit ffe01be

Browse files
author
Daniel Flores
committed
consistently use getvalue instead of seek
1 parent 5015d6d commit ffe01be

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

test/test_ops.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1496,8 +1496,7 @@ def test_against_to_file(self, tmp_path, format, method):
14961496
format=format,
14971497
**params,
14981498
)
1499-
file_like.seek(0)
1500-
encoded_output = file_like
1499+
encoded_output = file_like.getvalue()
15011500

15021501
torch.testing.assert_close(
15031502
self.decode(encoded_file).data,

0 commit comments

Comments
 (0)