@@ -1495,6 +1495,11 @@ def test_only(marker: str, only: list[str], expected: str) -> None:
1495
1495
('python_version > "3.8"' , "~3.8" , "<empty>" ),
1496
1496
('python_version >= "3.8"' , "~3.8" , "" ),
1497
1497
('python_version >= "3.9"' , "~3.8" , "<empty>" ),
1498
+ ('python_version == "3.9"' , ">=3.9" , 'python_version == "3.9"' ),
1499
+ ('python_version <= "3.9"' , ">=3.9" , 'python_version == "3.9"' ),
1500
+ ('python_version < "3.10"' , ">=3.9" , 'python_version == "3.9"' ),
1501
+ ('python_version <= "3.10"' , ">=3.9" , 'python_version <= "3.10"' ),
1502
+ ('python_version < "3.11"' , ">=3.9" , 'python_version < "3.11"' ),
1498
1503
('python_full_version >= "3.8.0"' , "~3.8" , "" ),
1499
1504
('python_full_version >= "3.8.1"' , "~3.8" , 'python_full_version >= "3.8.1"' ),
1500
1505
('python_full_version < "3.8.0"' , "~3.8" , "<empty>" ),
@@ -1519,7 +1524,7 @@ def test_only(marker: str, only: list[str], expected: str) -> None:
1519
1524
(
1520
1525
'python_version < "3.8" or python_version >= "3.9"' ,
1521
1526
">=3.7" ,
1522
- 'python_version < "3.8 " or python_version >= "3.9"' ,
1527
+ 'python_version == "3.7 " or python_version >= "3.9"' ,
1523
1528
),
1524
1529
('python_version < "3.8" or python_version >= "3.9"' , "~3.7" , "" ),
1525
1530
(
@@ -1539,7 +1544,7 @@ def test_only(marker: str, only: list[str], expected: str) -> None:
1539
1544
(
1540
1545
'python_version < "3.8" or python_version >= "3.9"' ,
1541
1546
"~3.6 || ~3.8" ,
1542
- 'python_version < "3.8 "' ,
1547
+ 'python_version == "3.6 "' ,
1543
1548
),
1544
1549
(
1545
1550
(
0 commit comments