Skip to content

Commit a937698

Browse files
auvipymayeut
andauthored
Update tests/integration/test_manylinux.py
Co-authored-by: Matthieu Darbois <[email protected]>
1 parent 36a900f commit a937698

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tests/integration/test_manylinux.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -585,8 +585,10 @@ def test_numpy_sbom(
585585
# Package URL prefixes must match for a policy.
586586
if policy.startswith("musllinux"):
587587
expected_purl_prefix = "pkg:apk/alpine/"
588-
elif policy.startswith(("manylinux_2_17", "manylinux_2_31_")):
589-
expected_purl_prefix = ("pkg:rpm/centos/", "pkg:deb/ubuntu/")
588+
elif policy.startswith("manylinux_2_17_"):
589+
expected_purl_prefix = "pkg:rpm/centos/"
590+
elif policy.startswith("manylinux_2_31_"):
591+
expected_purl_prefix = "pkg:deb/ubuntu/"
590592
elif policy.startswith("manylinux_2_34_"):
591593
expected_purl_prefix = "pkg:rpm/almalinux/"
592594
else:

0 commit comments

Comments
 (0)