-
Notifications
You must be signed in to change notification settings - Fork 10
Add -i option to mimic GNU patch more and collect coverage for subprocesses #37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
| methname = 'test_' + filename | ||
| def create_closure(): | ||
| name = filename | ||
| return lambda self: self._run_test(name) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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
|
This has grown a bit to make it produce a patch.exe (using Nuitka) that is more compatible with GNU patch.exe |
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