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