@@ -373,6 +373,13 @@ def test_glibc_version_string_confstr(self, monkeypatch):
373
373
monkeypatch .setattr (os , "confstr" , lambda x : "glibc 2.20" , raising = False )
374
374
assert tags ._glibc_version_string_confstr () == "2.20"
375
375
376
+ def test_glibc_version_string_fail (self , monkeypatch ):
377
+ monkeypatch .setattr (os , "confstr" , lambda x : None , raising = False )
378
+ monkeypatch .setitem (sys .modules , "ctypes" , None )
379
+ assert tags ._glibc_version_string () is None
380
+ assert tags ._have_compatible_glibc (2 , 5 ) is False
381
+ assert tags ._get_glibc_version () == (- 1 , - 1 )
382
+
376
383
@pytest .mark .parametrize (
377
384
"failure" ,
378
385
[pretend .raiser (ValueError ), pretend .raiser (OSError ), lambda x : "XXX" ],
@@ -463,7 +470,18 @@ def test_linux_platforms_manylinux2010(self, is_x86, monkeypatch):
463
470
monkeypatch .setattr (platform , "machine" , lambda : "x86_64" )
464
471
platforms = list (tags ._linux_platforms (is_32bit = False ))
465
472
arch = platform .machine ()
466
- expected = ["manylinux2010_" + arch , "manylinux1_" + arch , "linux_" + arch ]
473
+ expected = [
474
+ "manylinux2010_" + arch ,
475
+ "manylinux_2_11_" + arch ,
476
+ "manylinux_2_10_" + arch ,
477
+ "manylinux_2_9_" + arch ,
478
+ "manylinux_2_8_" + arch ,
479
+ "manylinux_2_7_" + arch ,
480
+ "manylinux_2_6_" + arch ,
481
+ "manylinux_2_5_" + arch ,
482
+ "manylinux1_" + arch ,
483
+ "linux_" + arch ,
484
+ ]
467
485
assert platforms == expected
468
486
469
487
def test_linux_platforms_manylinux2014 (self , is_x86 , monkeypatch ):
@@ -477,7 +495,19 @@ def test_linux_platforms_manylinux2014(self, is_x86, monkeypatch):
477
495
arch = platform .machine ()
478
496
expected = [
479
497
"manylinux2014_" + arch ,
498
+ "manylinux_2_16_" + arch ,
499
+ "manylinux_2_15_" + arch ,
500
+ "manylinux_2_14_" + arch ,
501
+ "manylinux_2_13_" + arch ,
502
+ "manylinux_2_12_" + arch ,
480
503
"manylinux2010_" + arch ,
504
+ "manylinux_2_11_" + arch ,
505
+ "manylinux_2_10_" + arch ,
506
+ "manylinux_2_9_" + arch ,
507
+ "manylinux_2_8_" + arch ,
508
+ "manylinux_2_7_" + arch ,
509
+ "manylinux_2_6_" + arch ,
510
+ "manylinux_2_5_" + arch ,
481
511
"manylinux1_" + arch ,
482
512
"linux_" + arch ,
483
513
]
@@ -511,8 +541,21 @@ def test_linux_platforms_manylinux2014_i386_abi(self, monkeypatch):
511
541
)
512
542
platforms = list (tags ._linux_platforms (is_32bit = True ))
513
543
expected = [
544
+ # "manylinux_2_17_i686", # rejected since it comes before maylinux2014
514
545
"manylinux2014_i686" ,
546
+ "manylinux_2_16_i686" ,
547
+ "manylinux_2_15_i686" ,
548
+ "manylinux_2_14_i686" ,
549
+ "manylinux_2_13_i686" ,
550
+ "manylinux_2_12_i686" ,
515
551
"manylinux2010_i686" ,
552
+ "manylinux_2_11_i686" ,
553
+ "manylinux_2_10_i686" ,
554
+ "manylinux_2_9_i686" ,
555
+ "manylinux_2_8_i686" ,
556
+ "manylinux_2_7_i686" ,
557
+ "manylinux_2_6_i686" ,
558
+ "manylinux_2_5_i686" ,
516
559
"manylinux1_i686" ,
517
560
"linux_i686" ,
518
561
]
0 commit comments