summaryrefslogtreecommitdiff
path: root/git/test/test_git.py
diff options
context:
space:
mode:
authorHarmon <Harmon758@gmail.com>2020-02-16 13:46:25 -0600
committerHarmon <Harmon758@gmail.com>2020-02-16 13:52:26 -0600
commit7cf0ca8b94dc815598e354d17d87ca77f499cae6 (patch)
tree4f6804ce8fdd8a9f13a83d3516037be0fe8cda7a /git/test/test_git.py
parent2c429fc0382868c22b56e70047b01c0567c0ba31 (diff)
downloadgitpython-7cf0ca8b94dc815598e354d17d87ca77f499cae6.tar.gz
Replace deprecated failUnlessRaises alias with assertRaises in tests
Diffstat (limited to 'git/test/test_git.py')
-rw-r--r--git/test/test_git.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/git/test/test_git.py b/git/test/test_git.py
index e6bc19d1..54057f49 100644
--- a/git/test/test_git.py
+++ b/git/test/test_git.py
@@ -175,7 +175,7 @@ class TestGit(TestBase):
# set it to something that doens't exist, assure it raises
type(self.git).GIT_PYTHON_GIT_EXECUTABLE = osp.join(
"some", "path", "which", "doesn't", "exist", "gitbinary")
- self.failUnlessRaises(exc, self.git.version)
+ self.assertRaises(exc, self.git.version)
finally:
type(self.git).GIT_PYTHON_GIT_EXECUTABLE = prev_cmd
# END undo adjustment
@@ -219,7 +219,7 @@ class TestGit(TestBase):
def test_insert_after_kwarg_raises(self):
# This isn't a complete add command, which doesn't matter here
- self.failUnlessRaises(ValueError, self.git.remote, 'add', insert_kwargs_after='foo')
+ self.assertRaises(ValueError, self.git.remote, 'add', insert_kwargs_after='foo')
def test_env_vars_passed_to_git(self):
editor = 'non_existent_editor'