Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit634b618

Browse files
committed
Use documented version_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_infoproperty uses the _version_info backing attribute has changed, andalso shows the usage that is documented (accessing _version_infowas never guaranteed to work, and now no longer works as before).
1 parentf699a38 commit634b618

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎test/test_index.py

Lines changed: 1 addition & 1 deletion
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
exceptCheckoutErrorase:
530530
# Detailed exceptions are only possible in older git versions.
531-
ifrw_repo.git._version_info< (2,29):
531+
ifrw_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)

[8]ページ先頭

©2009-2025 Movatter.jp