From 8dbc0505983d954fd4a0cac6011711be0a196237 Mon Sep 17 00:00:00 2001 From: Patrick Roy Date: Tue, 10 Dec 2024 15:24:54 +0000 Subject: [PATCH] test: update changelog validation to match new mdformat with new mdformat we no longer need to wrap level 2 headings in escaped brackets, just normal brackets. Signed-off-by: Patrick Roy --- tests/integration_tests/style/test_repo.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/integration_tests/style/test_repo.py b/tests/integration_tests/style/test_repo.py index 90a1e9450e1..299f89f6cdb 100644 --- a/tests/integration_tests/style/test_repo.py +++ b/tests/integration_tests/style/test_repo.py @@ -44,8 +44,8 @@ def test_repo_validate_changelog(): errors = [] for lineno, line in enumerate(changelog, start=1): if line.startswith("## "): - if not re.match(r"^## \\\[.+\\\]$", line): - msg = "Level 2 headings (versions) should be wrapped in \\[\\]" + if not re.match(r"^## \[.+\]$", line): + msg = "Level 2 headings (versions) should be wrapped in []" errors.append((lineno, msg, line)) if line.startswith("### "): if not re.match(r"^### (Added|Changed|Deprecated|Removed|Fixed)$", line):