Skip to content

Commit 5c4b660

Browse files
committed
tests: Dump more info if version test fails
Signed-off-by: Stephen Finucane <[email protected]> (cherry picked from commit fa14cf8)
1 parent 95682fd commit 5c4b660

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

patchwork/tests/test_version.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,9 @@ def test_validate_version(self):
3232

3333
# if the tag is missing from one, it should be missing from the other
3434
# (and vice versa)
35-
self.assertEqual(bool(str_match.group(1)), bool(git_match.group(1)))
35+
self.assertEqual(
36+
bool(str_match.group(1)),
37+
bool(git_match.group(1)),
38+
f'mismatch between git and version.txt post-release metadata: '
39+
f'git={git_match.group(1)!r}, version.txt={str_match.group(1)!r}',
40+
)

0 commit comments

Comments
 (0)