AlenkaF commented on a change in pull request #11447:
URL: https://github.com/apache/arrow/pull/11447#discussion_r731527086
##########
File path: python/pyarrow/tests/test_fs.py
##########
@@ -587,11 +587,14 @@ def test_subtree_filesystem():
subfs = SubTreeFileSystem('/base', localfs)
assert subfs.base_path == '/base/'
assert subfs.base_fs == localfs
+ assert str(subfs) == 'SubTreeFileSystem: file:/base/'
+ assert repr(subfs) == f'SubTreeFileSystem(base_path=/base/,
base_fs={subfs.base_fs})'
subfs = SubTreeFileSystem('/another/base/', LocalFileSystem())
assert subfs.base_path == '/another/base/'
assert subfs.base_fs == localfs
-
+ assert str(subfs) == 'SubTreeFileSystem: file:/another/base/'
+ assert repr(subfs) == f'SubTreeFileSystem(base_path=/another/base/,
base_fs={subfs.base_fs})'
Review comment:
Yes, exactly. Even locally on my M1 it first showed the diff and at the
end it passed. I don't really understand how it works. It looks like it is
interchanging between two numbers every time you call it.
I don't have an idea how to make it more robust in this case. Can't seem to
find a sense in the behaviour.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]