Skip to content

Commit 997a3b6

Browse files
committed
Test raise_if_error
1 parent 5fd7c90 commit 997a3b6

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Diff for: test/test_remote.py

+7
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,13 @@ def _do_test_push_result(self, results, remote):
154154
# END error checking
155155
# END for each info
156156

157+
if any([info.flags & info.ERROR for info in results]):
158+
with self.assertRaises():
159+
results.raise_if_error()
160+
else:
161+
# No errors, so this should do nothing
162+
results.raise_if_error()
163+
157164
def _do_test_fetch_info(self, repo):
158165
self.assertRaises(ValueError, FetchInfo._from_line, repo, "nonsense", '')
159166
self.assertRaises(

0 commit comments

Comments
 (0)