Add -i option to mimic GNU patch more and collect coverage for subprocesses#37
Closed
timfel wants to merge 15 commits intoconan-io:masterfrom
Closed
Add -i option to mimic GNU patch more and collect coverage for subprocesses#37timfel wants to merge 15 commits intoconan-io:masterfrom
timfel wants to merge 15 commits intoconan-io:masterfrom
Conversation
timfel
commented
Oct 28, 2024
| methname = 'test_' + filename | ||
| def create_closure(): | ||
| name = filename | ||
| return lambda self: self._run_test(name) |
Author
There was a problem hiding this comment.
Fixes a deprecation warning in 3.12: unittest/case.py:690: DeprecationWarning: It is deprecated to return a value that is not None from a test case (<bound method add_test_methods.<locals>.create_closure.<locals>.<lambda> of <__main__.TestPatchFiles testMethod=test_11permission>>)
Index length is not fixed to 7 and can vary up to 40 characters.
4030f60 to
db3928d
Compare
Author
|
This has grown a bit to make it produce a patch.exe (using Nuitka) that is more compatible with GNU patch.exe |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Hi,
I wanted to use patch-ng in a context where the GNU patch utility was use previously and ideally without changing the commandline options.
-ioption