1
0
Fork 0
forked from github/pelican

test: fix build test

the regex, searching for the builded files was not stable to changes for two digit versions.

fixes: Build test failures in GitHub CI workflow #3393
This commit is contained in:
Lioman 2024-09-19 14:25:01 +02:00
commit 86bf9230b4

View file

@ -61,6 +61,6 @@ def test_sdist_contents(pytestconfig, expected_file):
filtered_values = [
path
for path in files_list
if match(rf"^pelican-\d\.\d\.\d/{expected_file}{dir_matcher}$", path)
if match(rf"^pelican-\d+\.\d+\.\d+/{expected_file}{dir_matcher}$", path)
]
assert len(filtered_values) > 0