summaryrefslogtreecommitdiff
path: root/test/test_repo.py
diff options
context:
space:
mode:
authorRobert Westman <robert@byteflux.io>2021-06-03 10:18:46 +0200
committerRobert Westman <robert@byteflux.io>2021-06-03 10:18:46 +0200
commit057514e85bc99754e08d45385bf316920963adf9 (patch)
treeedb112ec082105e9aef64ddef290dfddad1ee49e /test/test_repo.py
parenta625d08801eacd94f373074d2c771103823954d0 (diff)
downloadgitpython-057514e85bc99754e08d45385bf316920963adf9.tar.gz
Fixes test to not throw false negative results
Diffstat (limited to 'test/test_repo.py')
-rw-r--r--test/test_repo.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/test_repo.py b/test/test_repo.py
index 9261f1cf..453ec5c3 100644
--- a/test/test_repo.py
+++ b/test/test_repo.py
@@ -422,7 +422,8 @@ class TestRepo(TestBase):
self.rorepo.tag(tag)
except ValueError as valueError:
value_errors.append(valueError.args[0])
- raise ValueError('. '.join(value_errors))
+ if value_errors:
+ raise ValueError('. '.join(value_errors))
def test_archive(self):
tmpfile = tempfile.mktemp(suffix='archive-test')