summaryrefslogtreecommitdiff
path: root/git/test/test_git.py
diff options
context:
space:
mode:
authorSebastian Thiel <byronimo@gmail.com>2014-02-10 19:59:56 +0100
committerSebastian Thiel <byronimo@gmail.com>2014-02-10 20:07:48 +0100
commitdbe78c02cbdfd0a539a1e04976e1480ac0daf580 (patch)
tree8c2006f92a65c564227b6dc18f48507303fb4f79 /git/test/test_git.py
parente4654ca3a17832a7d479e5d8e3296f004c632183 (diff)
downloadgitpython-dbe78c02cbdfd0a539a1e04976e1480ac0daf580.tar.gz
Minor modifications to get tests back to work.
Two tests are failing in the latest git version, would have to dig into it
Diffstat (limited to 'git/test/test_git.py')
-rw-r--r--git/test/test_git.py17
1 files changed, 8 insertions, 9 deletions
diff --git a/git/test/test_git.py b/git/test/test_git.py
index 5b0cbfee..b61a0eea 100644
--- a/git/test/test_git.py
+++ b/git/test/test_git.py
@@ -5,25 +5,24 @@
# the BSD License: http://www.opensource.org/licenses/bsd-license.php
import os, sys
-from git.test.lib import (
- TestBase,
- patch_object,
+from git.test.lib import ( TestBase,
+ patch,
raises,
assert_equal,
assert_true,
assert_match,
- fixture_path
- )
-from git import Git, GitCommandError
+ fixture_path )
+from git import ( Git,
+ GitCommandError )
class TestGit(TestBase):
@classmethod
def setUp(cls):
- super(TestGit, cls).setUpAll()
+ super(TestGit, cls).setUp()
cls.git = Git(cls.rorepo.working_dir)
- @patch_object(Git, 'execute')
+ @patch.object(Git, 'execute')
def test_call_process_calls_execute(self, git):
git.return_value = ''
self.git.version()
@@ -54,7 +53,7 @@ class TestGit(TestBase):
self.git.hash_object(istream=fh, stdin=True))
fh.close()
- @patch_object(Git, 'execute')
+ @patch.object(Git, 'execute')
def test_it_ignores_false_kwargs(self, git):
# this_should_not_be_ignored=False implies it *should* be ignored
output = self.git.version(pass_this_kwarg=False)