Closed
Description
Bug report
This shouldn't raise an exception:
>>> pathlib.PureWindowsPath('foo', 'a').with_name('a:b')
ValueError: Invalid name 'a:b'
(affects all versions of pathlib)
This should raise an exception:
>>> pathlib.PurePath('foo', 'a').with_name('.')
PurePosixPath('foo/.')
(affects 3.12 and up)