You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "c:\users\liziq\appdata\local\programs\python\python37\lib\unittest\case.py", line 59, in testPartExecutor
yield
File "c:\users\liziq\appdata\local\programs\python\python37\lib\unittest\case.py", line 628, in run
testMethod()
File "D:\A-work\test\test.py", line 92, in test1
patch = PatchSet(diff, encoding=encoding)
File "D:\A-work\test\venv\lib\site-packages\unidiff\patch.py", line 421, in __init__
self._parse(data, encoding=encoding, metadata_only=metadata_only)
File "D:\A-work\test\venv\lib\site-packages\unidiff\patch.py", line 513, in _parse
current_file._append_trailing_empty_line()
File "D:\A-work\test\venv\lib\site-packages\unidiff\patch.py", line 351, in _append_trailing_empty_line
raise UnidiffParseError('Unexpected trailing newline character')
unidiff.errors.UnidiffParseError: Unexpected trailing newline character
The text was updated successfully, but these errors were encountered:
Note that passing the full patch data won't work (there are several metadata/information there the lib is not parsing, or ignoring). But if you use this URL instead 'https://patch-diff.githubusercontent.com/raw/eXist-db/exist/pull/2644.diff', it should work (since there you have the plain/raw diff from the patch only, which is what the library supports).
test case
log
The text was updated successfully, but these errors were encountered: