| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 9240de9 commit 699e223
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -154,6 +154,12 @@ def _do_test_push_result(self, results, remote): | |||
| 154 | 154 | # END error checking | |
| 155 | 155 | # END for each info | |
| 156 | 156 | ||
| 157 | + if any([info.flags & info.ERROR for info in results]): | ||
| 158 | + self.assertRaises(GitCommandError, results.raise_if_error) | ||
| 159 | + else: | ||
| 160 | + # No errors, so this should do nothing | ||
| 161 | + results.raise_if_error() | ||
| 162 | + | ||
| 157 | 163 | def _do_test_fetch_info(self, repo): | |
| 158 | 164 | self.assertRaises(ValueError, FetchInfo._from_line, repo, "nonsense", '') | |
| 159 | 165 | self.assertRaises( | |
| Back | FazBrowse Home | New Git URL |
0 commit comments