Skip to content

Commit 2ad066a

Browse files
Prepare for pygit2 1.15.0 (#2306)
- Unbreak the tests for #2244 - https://github.com/libgit2/pygit2/blob/master/CHANGELOG.md#1150-2024-05-18 states that the deprecated `object.oid` has been removed in favour of `object.id` (it would be nice to have a way to surface deprecated but not decommissioned usage so this didn't need to be done so reactively) - Tidy up some whitespace
1 parent e7dfca9 commit 2ad066a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

osv/tests.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def expect_dict_equal(self, expected_name, actual):
5858
self.assertDictEqual(self._load_expected(expected_name, actual), actual)
5959

6060
def expect_lines_equal(self, expected_name, actual_lines):
61-
"""Check if the output lines is equal to the expected value,
61+
"""Check if the output lines is equal to the expected value,
6262
printing a diff when it is different."""
6363
expected_lines = self._load_expected(expected_name, actual_lines)
6464
if expected_lines != actual_lines:
@@ -101,7 +101,7 @@ def commit(self, author_name, author_email, message='Changes'):
101101
tree = self._repo.index.write_tree()
102102
author = pygit2.Signature(author_name, author_email)
103103
self._repo.create_commit('HEAD', author, author, message, tree,
104-
[self._repo.head.peel().oid])
104+
[self._repo.head.peel().id])
105105

106106

107107
def start_datastore_emulator():

0 commit comments

Comments
 (0)