Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests: Fix Path exception matching for Python 3.12
On Python 3.12 the `pathlib.Path()` exception string has changed to `argument should be a str or an os.PathLike object where __fspath__ returns a str, not 'bool'`. Matching the whole exception string was never a great idea, but it seems like `PathLike` will always be in it somewhere. Fixes: #16
- Loading branch information