From c8c63abb360b4829b3d75d60fb837c0132db0510 Mon Sep 17 00:00:00 2001 From: Harmon Date: Sun, 16 Feb 2020 16:35:30 -0600 Subject: Replace assert_raises with assertRaises --- git/test/test_base.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'git/test/test_base.py') 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 -- cgit v1.2.1