Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions tests/unit/test_policy.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,13 @@ class TestPolicyAccess:
def test_get_by_name(self):
arch = Architecture.detect()
policies = WheelPolicies(libc=Libc.GLIBC, arch=arch)
assert policies.get_policy_by_name(f"manylinux_2_41_{arch}").priority == 51
Comment thread
auvipy marked this conversation as resolved.
assert policies.get_policy_by_name(f"manylinux_2_36_{arch}").priority == 56
if arch == Architecture.loongarch64:
return
assert policies.get_policy_by_name(f"manylinux_2_31_{arch}").priority == 61
if arch == Architecture.riscv64:
return
assert policies.get_policy_by_name(f"manylinux_2_27_{arch}").priority == 65
assert policies.get_policy_by_name(f"manylinux_2_24_{arch}").priority == 70
assert policies.get_policy_by_name(f"manylinux2014_{arch}").priority == 80
Expand Down