We should be able to parametrize tests for pathlib's `ReadablePath.copy()`, e.g.: - Copy from `Path` to `Path` - Copy from `Path` to `WritableZipPath` - Copy from `ReadableZipPath` to `Path` - Copy from `ReadableZipPath` to `WritableZipPath` Unfortunately this breaks some deep assumptions in the existing test classes, so I think we should create new suites somewhere in `test.test_pathlib`. <!-- gh-linked-prs --> ### Linked PRs * gh-130648 * gh-130990 * gh-130991 * gh-130988 * gh-131016 * gh-131017 * gh-131018 * gh-131112 * gh-131168 * gh-131215 * gh-131259 <!-- /gh-linked-prs -->
Activity
srinivasreddy commentedon Feb 27, 2025
I would like to work on it. If not taken
Mr-Sunglasses commentedon Feb 27, 2025
Yes, Please go ahead :-)
barneygale commentedon Feb 27, 2025
I've already made a start on this, but I'll stop making changes and put a PR up so that others can contribute.
pythonGH-130614: Add test suites for readable and writable `pathlib` …
pythonGH-130614: Add test suites for readable and writable `pathlib` …
pythonGH-130614: Add `test.test_pathlib.test_join`
pythonGH-130614: pathlib ABCs: retain original separator in `with_nam…
pythonGH-130614: pathlib ABCs: support alternate separator in `full_m…
GH-130614: pathlib ABCs: retain original separator in `with_name()` (#…
GH-130614: pathlib ABCs: support alternate separator in `full_match()` (
Merge branch 'main' into pythongh-130614-test-join
GH-130614: pathlib ABCs: revise test suite for path joining (#130988)
pythonGH-130614: pathlib ABCs: revise test suite for Windows path joi…
10 remaining items
GH-130614: pathlib ABCs: revise test suite for writable paths (#131112)
pythonGH-130614: pathlib ABCs: parametrize test suite for path copying
Merge branch 'main' into pythongh-130614-test-copy
GH-130614: pathlib ABCs: parametrize test suite for path copying (#13…
pythonGH-130614: pathlib ABCs: delete vestigial `test_pathlib_abc` mo…
pythonGH-130614: pathlib ABCs: improve support for receiving path met…
GH-130614: pathlib ABCs: delete vestigial `test_pathlib_abc` module (#…
GH-130614: pathlib ABCs: improve support for receiving path metadata (#…
pythonGH-130614: pathlib ABCs: revise test suite for writable paths (p…
pythonGH-130614: pathlib ABCs: parametrize test suite for path copying (
pythonGH-130614: pathlib ABCs: delete vestigial `test_pathlib_abc` mo…
pythonGH-130614: pathlib ABCs: improve support for receiving path met…
hugovk commentedon Nov 21, 2025
@barneygale Triage: is there more to do for this or can we close it?
StanFromIreland commentedon Sep 4, 2026
Seeing as there has been no reply, I'm closing assuming this has been completed.