Uh oh!
There was an error while loading. Please reload this page.
GH-73991: Disallow copying directory into itself via pathlib.Path.copy() - #122924
Conversation
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
I think my interrogations are answered. Do we actually need to have a full coverage? I think that what we are covering currently is A' -> A' and A -> A' with A' a symlink to A but I'm not sure if we need to do more per our discussion on the perverse example (for instance, A' -> A'' where both are symlinks actually).
barneygale
commented
Aug 18, 2024
Good shout! I've added tests for copying from one symlink to another. |
barneygale
commented
Aug 23, 2024
Hey @picnixz, do you think this is ready to merge? |
picnixz
left a comment
There was a problem hiding this comment.
Sometimes I request reviews for myself in order not to forget them... and then I still forget about them >.< From what we decided, I think we are fine with the tests, but you could also increase the coverage by testing the follow_symlinks=False case. I'm fine with the current state of the PR though (by the way, any reason why you sometimes use a context manager for checking the error and sometimes not?)
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
barneygale
commented
Aug 23, 2024
No worries! Thanks tons for the review, it's been very helpful |
picnixz
commented
Aug 23, 2024
It was a fun moment as well! |
No news blurb because
pathlib.Path.copy()is still new.