summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Mercier <michael.mercier@ryax.tech>2021-03-12 09:05:39 +0100
committerMichael Mercier <michael.mercier@ryax.tech>2021-03-12 09:05:39 +0100
commitb650c4f28bda658d1f3471882520698ef7fb3af6 (patch)
treeec0bad853366dec27753c3fc3a18620f5ee771e2
parent1d43a751e578e859e03350f198bca77244ba53b5 (diff)
downloadgitpython-b650c4f28bda658d1f3471882520698ef7fb3af6.tar.gz
Better assert message
-rw-r--r--test/test_repo.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/test_repo.py b/test/test_repo.py
index 65e69c52..ac4c6660 100644
--- a/test/test_repo.py
+++ b/test/test_repo.py
@@ -244,10 +244,11 @@ class TestRepo(TestBase):
password = "fakepassword1234"
try:
Repo.clone_from(
- url="https://fakeuser:{}@fakerepo.example.com/testrepo".format(password),
+ url="https://fakeuser:{}@fakerepo.example.com/testrepo".format(
+ password),
to_path=rw_dir)
except GitCommandError as err:
- assert password not in str(err)
+ assert password not in str(err), "The error message '%s' should not contain the password" % err
@with_rw_repo('HEAD')
def test_max_chunk_size(self, repo):