summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_pathlib/support/lexical_path.py
diff options
context:
space:
mode:
authorBarney Gale <barney.gale@gmail.com>2025-03-09 16:36:20 (GMT)
committerGitHub <noreply@github.com>2025-03-09 16:36:20 (GMT)
commitba64cc5db410a893e6ff5bfee9210207947b69c2 (patch)
treea41669debdce664f9e15dc3f5c039c488924a6cb /Lib/test/test_pathlib/support/lexical_path.py
parentc240c2d88a080fc3c68c220aa81062cf5f130ab9 (diff)
downloadcpython-ba64cc5db410a893e6ff5bfee9210207947b69c2.zip
cpython-ba64cc5db410a893e6ff5bfee9210207947b69c2.tar.gz
cpython-ba64cc5db410a893e6ff5bfee9210207947b69c2.tar.bz2
GH-130614: pathlib ABCs: retain original separator in `with_name()` (#130990)
In `pathlib.types._JoinablePath.with_name()`, retain any alternative path separator preceding the old name, rather stripping and replacing it with a primary separator. As a result, this method changes _only_ the name.
Diffstat (limited to 'Lib/test/test_pathlib/support/lexical_path.py')
0 files changed, 0 insertions, 0 deletions