GH-128520: pathlib ABCs: fix with_name() handling of empty names
#155641
| Job | Run time |
|---|---|
| 2s | |
| 2s | |
| 4s |
with_name() handling of empty names
#155641
| Job | Run time |
|---|---|
| 2s | |
| 2s | |
| 4s |