Skip to content
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

Add -i option to mimic GNU patch more and collect coverage for subprocesses #37

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

timfel
Copy link

@timfel timfel commented Oct 28, 2024

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.

  • Added the -i option
  • Updated the coverage runner and docs to collect coverage from subprocesses
  • Added tests for the three methods of passing patch files into the tool
  • Fixed reading patches from stdin

methname = 'test_' + filename
def create_closure():
name = filename
return lambda self: self._run_test(name)
Copy link
Author

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>>)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant