-
- Notifications
You must be signed in to change notification settings - Fork 33.2k
Closed
Closed
Copy link
Labels
3.12only security fixesonly security fixes3.13bugs and security fixesbugs and security fixestopic-pathlibtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
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)
Linked PRs
Metadata
Metadata
Assignees
Labels
3.12only security fixesonly security fixes3.13bugs and security fixesbugs and security fixestopic-pathlibtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error