libgit2 / pygit2

Python bindings for libgit2
https://www.pygit2.org/
Other
1.58k stars 382 forks source link

Fix parse_diff tests not calling correct function #1131

Closed jorio closed 2 years ago

jorio commented 2 years ago

The parse_diff function was moved out of Repository in the past, but some tests weren't updated to reflect this change.

The tests passed because they expected any exception to be raised, but they weren't actually calling the correct function (Diff.parse_diff).