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

Commit699e223

Browse files
SjordByron
authored andcommitted
Test raise_if_error
1 parent9240de9 commit699e223

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

‎test/test_remote.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,12 @@ def _do_test_push_result(self, results, remote):
154154
# END error checking
155155
# END for each info
156156

157+
ifany([info.flags&info.ERRORforinfoinresults]):
158+
self.assertRaises(GitCommandError,results.raise_if_error)
159+
else:
160+
# No errors, so this should do nothing
161+
results.raise_if_error()
162+
157163
def_do_test_fetch_info(self,repo):
158164
self.assertRaises(ValueError,FetchInfo._from_line,repo,"nonsense",'')
159165
self.assertRaises(

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp