The `DummyPurePath` and `DummyPath` test classes are simple subclasses of
`PurePathBase` and `PathBase`. This commit adds `__repr__()` methods to the
dummy classes, which makes debugging test failures less painful.
def __hash__(self):
return hash(str(self))
+ def __repr__(self):
+ return "{}({!r})".format(self.__class__.__name__, self.as_posix())
+
class DummyPurePathTest(unittest.TestCase):
cls = DummyPurePath
def __hash__(self):
return hash(str(self))
+ def __repr__(self):
+ return "{}({!r})".format(self.__class__.__name__, self.as_posix())
+
def stat(self, *, follow_symlinks=True):
if follow_symlinks:
path = str(self.resolve())