8000 [3.12] GH-110488: Fix two small issues in `pathlib.PurePath.with_name()` (GH-110651) by barneygale · Pull Request #110678 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

[3.12] GH-110488: Fix two small issues in pathlib.PurePath.with_name() (GH-110651) #110678

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 11, 2023

Conversation

barneygale
Copy link
Contributor
@barneygale barneygale commented Oct 11, 2023

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 b5f7777)

Co-authored-by: Barney Gale barney.gale@gmail.com

…h_name()` (pythonGH-110651)

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 b5f7777)

Co-authored-by: Barney Gale <barney.gale@gmail.com>
@barneygale barneygale changed the title [3.12] GH-110488: Fix two small issues in pathlib.PurePath.with_name() (GH-110651 [3.12] GH-110488: Fix two small issues in pathlib.PurePath.with_name() (GH-110651) Oct 11, 2023
@barneygale barneygale enabled auto-merge (squash) October 11, 2023 04:07
@barneygale barneygale merged commit 9ffef4d into python:3.12 Oct 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant
0