summaryrefslogtreecommitdiff
path: root/git/test/test_base.py
diff options
context:
space:
mode:
authorHarmon <Harmon758@gmail.com>2020-02-16 16:35:30 -0600
committerHarmon <Harmon758@gmail.com>2020-02-16 16:35:30 -0600
commitc8c63abb360b4829b3d75d60fb837c0132db0510 (patch)
tree7a1634e343cb122f2c043fa37bb798270ef9c2b4 /git/test/test_base.py
parent24d04e820ef721c8036e8424acdb1a06dc1e8b11 (diff)
downloadgitpython-c8c63abb360b4829b3d75d60fb837c0132db0510.tar.gz
Replace assert_raises with assertRaises
Diffstat (limited to 'git/test/test_base.py')
-rw-r--r--git/test/test_base.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/git/test/test_base.py b/git/test/test_base.py
index 2132806b..ee2e8e07 100644
--- a/git/test/test_base.py
+++ b/git/test/test_base.py
@@ -19,7 +19,6 @@ from git.compat import is_win
from git.objects.util import get_object_type_by_name
from git.test.lib import (
TestBase,
- assert_raises,
with_rw_repo,
with_rw_and_rw_remote_repo
)
@@ -96,7 +95,7 @@ class TestBase(TestBase):
assert base.Object in get_object_type_by_name(tname).mro()
# END for each known type
- assert_raises(ValueError, get_object_type_by_name, b"doesntexist")
+ self.assertRaises(ValueError, get_object_type_by_name, b"doesntexist")
def test_object_resolution(self):
# objects must be resolved to shas so they compare equal