summaryrefslogtreecommitdiff
path: root/git/test/test_remote.py
diff options
context:
space:
mode:
Diffstat (limited to 'git/test/test_remote.py')
-rw-r--r--git/test/test_remote.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/git/test/test_remote.py b/git/test/test_remote.py
index 2540e49b..c419ecee 100644
--- a/git/test/test_remote.py
+++ b/git/test/test_remote.py
@@ -313,8 +313,7 @@ class TestRemote(TestBase):
self._do_test_push_result(res, remote)
# invalid refspec
- res = remote.push("hellothere")
- assert len(res) == 0
+ self.failUnlessRaises(GitCommandError, remote.push, "hellothere")
# push new tags
progress = TestRemoteProgress()
@@ -486,6 +485,9 @@ class TestRemote(TestBase):
# END if deleted remote matches existing remote's name
# END for each remote
+ # Issue #262 - the next call would fail if bug wasn't fixed
+ bare_rw_repo.create_remote('bogus', '/bogus/path', mirror='push')
+
def test_fetch_info(self):
# assure we can handle remote-tracking branches
fetch_info_line_fmt = "c437ee5deb8d00cf02f03720693e4c802e99f390 not-for-merge %s '0.3' of "