From 7cf0ca8b94dc815598e354d17d87ca77f499cae6 Mon Sep 17 00:00:00 2001 From: Harmon Date: Sun, 16 Feb 2020 13:46:25 -0600 Subject: Replace deprecated failUnlessRaises alias with assertRaises in tests --- git/test/test_fun.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'git/test/test_fun.py') diff --git a/git/test/test_fun.py b/git/test/test_fun.py index 612c4c5d..594e8fab 100644 --- a/git/test/test_fun.py +++ b/git/test/test_fun.py @@ -70,7 +70,7 @@ class TestFun(TestBase): self._assert_index_entries(aggressive_tree_merge(odb, trees), trees) # too many trees - self.failUnlessRaises(ValueError, aggressive_tree_merge, odb, trees * 2) + self.assertRaises(ValueError, aggressive_tree_merge, odb, trees * 2) def mktree(self, odb, entries): """create a tree from the given tree entries and safe it to the database""" -- cgit v1.2.1