SIGN IN SIGN UP

GH-114610: Fix `pathlib._abc.PurePathBase.with_suffix('.ext')` handling of stems (#114613)

Raise `ValueError` if `with_suffix('.ext')` is called on a path without a
stem. Paths may only have a non-empty suffix if they also have a non-empty
stem.

ABC-only bugfix; no effect on public classes.
B
Barney Gale committed
809eed48058ea7391df57ead09dff53bcc5d81e9
Parent: e21754d
Committed by GitHub <noreply@github.com> on 1/30/2024, 2:25:16 PM