MCPcopy Create free account
hub / github.com/dask/dask / CustomFSPath

Class CustomFSPath

dask/bytes/tests/test_bytes_utils.py:144–151  ·  view source on GitHub ↗

For testing fspath on unknown objects

Source from the content-addressed store, hash-verified

142
143 # fspath protocol
144 class CustomFSPath:
145 """For testing fspath on unknown objects"""
146
147 def __init__(self, path):
148 self.path = path
149
150 def __fspath__(self):
151 return self.path
152
153 path = CustomFSPath(test_filepath)
154 assert stringify_path(path) == test_filepath

Callers 1

test_stringify_pathFunction · 0.85

Calls

no outgoing calls

Tested by 1

test_stringify_pathFunction · 0.68