summaryrefslogtreecommitdiff
path: root/git/test/test_docs.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_docs.py
parent2c429fc0382868c22b56e70047b01c0567c0ba31 (diff)
downloadgitpython-7cf0ca8b94dc815598e354d17d87ca77f499cae6.tar.gz
Replace deprecated failUnlessRaises alias with assertRaises in tests
Diffstat (limited to 'git/test/test_docs.py')
-rw-r--r--git/test/test_docs.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/git/test/test_docs.py b/git/test/test_docs.py
index a393ded8..57921613 100644
--- a/git/test/test_docs.py
+++ b/git/test/test_docs.py
@@ -232,7 +232,7 @@ class Tutorials(TestBase):
# [6-test_references_and_objects]
new_tag = repo.create_tag('my_new_tag', message='my message')
# You cannot change the commit a tag points to. Tags need to be re-created
- self.failUnlessRaises(AttributeError, setattr, new_tag, 'commit', repo.commit('HEAD~1'))
+ self.assertRaises(AttributeError, setattr, new_tag, 'commit', repo.commit('HEAD~1'))
repo.delete_tag(new_tag)
# ![6-test_references_and_objects]
@@ -441,7 +441,7 @@ class Tutorials(TestBase):
# [30-test_references_and_objects]
# checkout the branch using git-checkout. It will fail as the working tree appears dirty
- self.failUnlessRaises(git.GitCommandError, repo.heads.master.checkout)
+ self.assertRaises(git.GitCommandError, repo.heads.master.checkout)
repo.heads.past_branch.checkout()
# ![30-test_references_and_objects]