From: Stephen Finucane Date: Thu, 31 Oct 2024 22:59:18 +0000 (+0000) Subject: tests: Dump more info if version test fails X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=fa14cf8480d9e515ed7a769adbd9eab33c6d82d9;p=thirdparty%2Fpatchwork.git tests: Dump more info if version test fails Signed-off-by: Stephen Finucane --- diff --git a/patchwork/tests/test_version.py b/patchwork/tests/test_version.py index 8e512084..9cbb1305 100644 --- a/patchwork/tests/test_version.py +++ b/patchwork/tests/test_version.py @@ -32,4 +32,9 @@ class TestVersion(test.TestCase): # if the tag is missing from one, it should be missing from the other # (and vice versa) - self.assertEqual(bool(str_match.group(1)), bool(git_match.group(1))) + self.assertEqual( + bool(str_match.group(1)), + bool(git_match.group(1)), + f'mismatch between git and version.txt post-release metadata: ' + f'git={git_match.group(1)!r}, version.txt={str_match.group(1)!r}', + )