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:
parent
a5db130e1d
commit
86bf9230b4
1 changed files with 1 additions and 1 deletions
|
|
@ -61,6 +61,6 @@ def test_sdist_contents(pytestconfig, expected_file):
|
||||||
filtered_values = [
|
filtered_values = [
|
||||||
path
|
path
|
||||||
for path in files_list
|
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
|
assert len(filtered_values) > 0
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue