Skip to content

Commit

Permalink
tests: fix regex to include build numbers
Browse files Browse the repository at this point in the history
Signed-off-by: Henry Schreiner <[email protected]>
  • Loading branch information
henryiii committed Nov 3, 2023
1 parent ce27a75 commit af55f49
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion scripts/list_test_packages.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ def create_test_packages_list(
all_packages = []
for downloaded_filename in downloaded_list:
wheel_re = re.search(
r"(.+)\-([^-]+)\-([^-]+)\-([^-]+)\-([^-]+)\.whl$", downloaded_filename
r"([^-]+)\-([^-]+)\-([^-]+)\-([^-]+)\-([^-]+)(-[^-]+)?\.whl$", downloaded_filename
)
src_re = re.search(r"(.+)\-([^-]+)\.(?:tar.gz|zip)$", downloaded_filename)
if wheel_re:
Expand Down
2 changes: 1 addition & 1 deletion testdata/tests_packages/macos21-python3.7.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ attrs==22.1.0
awscli==1.18.168
backcall==0.2.0
beautifulsoup4==4.11.1
black-22.10.0==1fixedarch
black==22.10.0
black==22.8.0
bleach==5.0.1
boto3==1.26.20
Expand Down
2 changes: 1 addition & 1 deletion testdata/tests_packages/macos21-python3.8.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ attrs==22.1.0
awscli==1.18.168
backcall==0.2.0
beautifulsoup4==4.11.1
black-22.10.0==1fixedarch
black==22.10.0
black==22.8.0
bleach==5.0.1
boto3==1.26.20
Expand Down

0 comments on commit af55f49

Please sign in to comment.