We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fe13b17 commit d3bd482Copy full SHA for d3bd482
tests/test_release.py
@@ -65,7 +65,8 @@ def test_release_changelog_version():
65
p = f'{g_root}/changes.txt'
66
with open(p) as f:
67
text = f.read()
68
- m = re.search(f'\n[*][*]Changes in version ([0-9.]+)[*][*]\n', text)
+ # We match `**Changes in version a.b.c**' optionally followed by ` (YYYY-MM-DD)`.
69
+ m = re.search(f'\n[*][*]Changes in version ([0-9.]+)[*][*]( [([0-9-]+[)])?\n', text)
70
assert m, f'Cannot parse {p}.'
71
assert m[1] == setup.version_p, \
72
f'{_file_line(p, text, m)}: Cannot find {setup.version_p=} in first changelog item: {m[0].strip()!r}.'
0 commit comments