Skip to content

Commit 74c04a8

Browse files
committed
Use documented verion_info in test_index_file_diffing
Instead of directly accessing the _version_info attribute. This fixes a new test failure since the way the public version_info property uses the _version_info backing attribute has changed, and also shows the usage that is documented (accessing _version_info was never guaranteed to work, and now longer works as before).
1 parent f699a38 commit 74c04a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: test/test_index.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -528,7 +528,7 @@ def test_index_file_diffing(self, rw_repo):
528528
index.checkout(test_file)
529529
except CheckoutError as e:
530530
# Detailed exceptions are only possible in older git versions.
531-
if rw_repo.git._version_info < (2, 29):
531+
if rw_repo.git.version_info < (2, 29):
532532
self.assertEqual(len(e.failed_files), 1)
533533
self.assertEqual(e.failed_files[0], osp.basename(test_file))
534534
self.assertEqual(len(e.failed_files), len(e.failed_reasons))

0 commit comments

Comments
 (0)