[3.12] GH-110488: Fix two small issues in `pathlib.PurePath.with_name()` (GH-110651) (#110678)
Ensure that `PurePath('foo/a').with_name('.')` raises `ValueError`
Ensure that `PureWindowsPath('foo/a').with_name('a:b')` does not raise
`ValueError`.
(cherry picked from commit b5f7777cb3ecae02d49e0b348968c1ff1ffe21f4) B
Barney Gale committed
9ffef4d797400de89fa9652fac99a4a171d05aed
Parent: be381b5
Committed by GitHub <noreply@github.com>
on 10/11/2023, 4:30:23 AM