gh-57141: Add dircmp shallow option.#109499
Conversation
3aef2a4 to
b775c58
Compare
Misc/NEWS.d/next/Library/2023-07-12-14-52-04.gh-issue-57141.L2k8Xb.rst
Outdated
Show resolved
Hide resolved
CuriousLearner
left a comment
There was a problem hiding this comment.
Hi Tobias @aunzat 👋🏼
Thanks for your contributions!
Seems like the test case test_dircmp_shallow_same_file is failing. Can you please take a look?
I have a few suggestions mentioned inline.
Since this is your first contribution, if you prefer, you may add your name to Misc/ACKS file.
4dd7d1e to
a775613
Compare
|
@CuriousLearner, thanks for comments
Fixed
Perfect, I have updated it accordingly. |
ec92dfe to
f4a5de9
Compare
e80c210 to
437b076
Compare
Co-authored-by: Steve Ward <planet36@gmail.com> Co-authored-by: Sanyam Khurana <8039608+CuriousLearner@users.noreply.github.com>
437b076 to
8671e21
Compare
For a new argument, there's |
Co-authored-by: Steve Ward <planet36@gmail.com> Co-authored-by: Sanyam Khurana <8039608+CuriousLearner@users.noreply.github.com>
Co-authored-by: Steve Ward <planet36@gmail.com> Co-authored-by: Sanyam Khurana <8039608+CuriousLearner@users.noreply.github.com>
Co-authored-by: Steve Ward <planet36@gmail.com> Co-authored-by: Sanyam Khurana <8039608+CuriousLearner@users.noreply.github.com>
Summary: Backport of gh-57141: Add dircmp shallow option Upstream PR: python/cpython#109499 Issue Link: python/cpython#57141 Merge Commit being ported: python/cpython@60743a9 Reviewed By: itamaro Differential Revision: D75456517 fbshipit-source-id: 88df6363f6a834e51d489397ece5dbd2275650dd
Add support for non shallow file comparison for filecmp.dircmp like there is for filecmp.cmp and filecmp.cmpfiles.
Based on (BPO) patch from @planet36. I have added unittests for the shallow options and
reorganized the tests somewhat. Maybe a "new in version" should be added to the documentation?
Co-authored-by: Steve Ward planet36@gmail.com
Issue: #57141
📚 Documentation preview 📚: https://cpython-previews--109499.org.readthedocs.build/