@@ -328,6 +328,7 @@ def test_comparison_non_specifier(self):
328
328
("2.0.post1" , ">=2" ),
329
329
("2.0.post1.dev1" , ">=2" ),
330
330
("3" , ">=2" ),
331
+ ("3.0.0a8" , ">=3.0.0a7" ),
331
332
# Test the less than equal operation
332
333
("2.0" , "<=2" ),
333
334
("2.0" , "<=2.0" ),
@@ -341,16 +342,19 @@ def test_comparison_non_specifier(self):
341
342
("2.0c1.post1.dev1" , "<=2" ),
342
343
("2.0rc1" , "<=2" ),
343
344
("1" , "<=2" ),
345
+ ("3.0.0a7" , "<=3.0.0a8" ),
344
346
# Test the greater than operation
345
347
("3" , ">2" ),
346
348
("2.1" , ">2.0" ),
347
349
("2.0.1" , ">2" ),
348
350
("2.1.post1" , ">2" ),
349
351
("2.1+local.version" , ">2" ),
352
+ ("3.0.0a8" , ">3.0.0a7" ),
350
353
# Test the less than operation
351
354
("1" , "<2" ),
352
355
("2.0" , "<2.1" ),
353
356
("2.0.dev0" , "<2.1" ),
357
+ ("3.0.0a7" , "<3.0.0a8" ),
354
358
# Test the compatibility operation
355
359
("1" , "~=1.0" ),
356
360
("1.0.1" , "~=1.0" ),
@@ -560,6 +564,11 @@ def test_specifiers_prereleases(self, specifier, version, expected):
560
564
(">=1.0" , None , ["2.0a1" ], ["2.0a1" ]),
561
565
(">=1.0.dev1" , None , ["1.0" , "2.0a1" ], ["1.0" , "2.0a1" ]),
562
566
(">=1.0.dev1" , False , ["1.0" , "2.0a1" ], ["1.0" ]),
567
+ ("!=2.0a1" , None , ["1.0a2" , "1.0" , "2.0a1" ], ["1.0" ]),
568
+ ("==2.0a1" , None , ["2.0a1" ], ["2.0a1" ]),
569
+ (">2.0a1" , None , ["2.0a1" , "3.0a2" , "3.0" ], ["3.0a2" , "3.0" ]),
570
+ ("<2.0a1" , None , ["1.0a2" , "1.0" , "2.0a1" ], ["1.0a2" , "1.0" ]),
571
+ ("~=2.0a1" , None , ["1.0" , "2.0a1" , "3.0a2" , "3.0" ], ["2.0a1" ]),
563
572
],
564
573
)
565
574
def test_specifier_filter (self , specifier , prereleases , input , expected ):
0 commit comments