mirror of
https://github.com/python/cpython.git
synced 2025-12-08 06:10:17 +00:00
gh-141600: Fix musl version detection on Void Linux (GH-141602)
This commit is contained in:
parent
c41fce08a5
commit
08477dbf30
4 changed files with 11 additions and 4 deletions
|
|
@ -798,10 +798,10 @@ def test_linked_to_musl(self):
|
|||
self.assertTrue(linked)
|
||||
# The value is cached, so make sure it returns the same value again.
|
||||
self.assertIs(linked, support.linked_to_musl())
|
||||
# The unlike libc, the musl version is a triple.
|
||||
# The musl version is either triple or just a major version number.
|
||||
if linked:
|
||||
self.assertIsInstance(linked, tuple)
|
||||
self.assertEqual(3, len(linked))
|
||||
self.assertIn(len(linked), (1, 3))
|
||||
for v in linked:
|
||||
self.assertIsInstance(v, int)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue