Skip to content

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

@timfel timfel force-pushed the master branch 2 times, most recently from 4030f60 to db3928d Compare March 25, 2025 10:17
@timfel
Copy link
Author

timfel commented Mar 25, 2025

This has grown a bit to make it produce a patch.exe (using Nuitka) that is more compatible with GNU patch.exe

@timfel timfel closed this Apr 11, 2025
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.

2 participants