]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
GH-113528: pathlib ABC tests: add repr to dummy path classes. (#113777)
authorBarney Gale <barney.gale@gmail.com>
Sat, 6 Jan 2024 17:02:36 +0000 (17:02 +0000)
committerGitHub <noreply@github.com>
Sat, 6 Jan 2024 17:02:36 +0000 (17:02 +0000)
commitd429a5a8e76e3013b35d60c78fcb891556ad9a7c
tree16e1bb2a6e172be404259955b9a008224dc917cf
parentd36a36511899bd8dc9adf5fc354e8ff7c611c51d
GH-113528: pathlib ABC tests: add repr to dummy path classes. (#113777)

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.
Lib/test/test_pathlib/test_pathlib_abc.py