@@ -64,7 +64,14 @@ def test_specifiers_valid(self, specifier):
64
64
# support one or the other
65
65
"==1.0.*+5" ,
66
66
"!=1.0.*+deadbeef" ,
67
- # Prefix matching cannot be used inside of a local version
67
+ # Prefix matching cannot be used with a pre-release, post-release,
68
+ # dev or local version
69
+ "==2.0a1.*" ,
70
+ "!=2.0a1.*" ,
71
+ "==2.0.post1.*" ,
72
+ "!=2.0.post1.*" ,
73
+ "==2.0.dev1.*" ,
74
+ "!=2.0.dev1.*" ,
68
75
"==1.0+5.*" ,
69
76
"!=1.0+deadbeef.*" ,
70
77
# Prefix matching must appear at the end
@@ -304,8 +311,6 @@ def test_comparison_non_specifier(self):
304
311
("2" , "==2.*" ),
305
312
("2.0" , "==2.*" ),
306
313
("2.0.0" , "==2.*" ),
307
- ("2.0.post1" , "==2.0.post1.*" ),
308
- ("2.0.post1.dev1" , "==2.0.post1.*" ),
309
314
("2.1+local.version" , "==2.1.*" ),
310
315
# Test the in-equality operation
311
316
("2.1" , "!=2" ),
@@ -401,8 +406,6 @@ def test_comparison_non_specifier(self):
401
406
("2" , "!=2.*" ),
402
407
("2.0" , "!=2.*" ),
403
408
("2.0.0" , "!=2.*" ),
404
- ("2.0.post1" , "!=2.0.post1.*" ),
405
- ("2.0.post1.dev1" , "!=2.0.post1.*" ),
406
409
# Test the greater than equal operation
407
410
("2.0.dev1" , ">=2" ),
408
411
("2.0a1" , ">=2" ),
@@ -526,7 +529,6 @@ def test_specifier_prereleases_detection(self, specifier, expected):
526
529
(">=1.0" , "2.0.dev1" , False ),
527
530
(">=2.0.dev1" , "2.0a1" , True ),
528
531
("==2.0.*" , "2.0a1.dev1" , False ),
529
- ("==2.0a1.*" , "2.0a1.dev1" , True ),
530
532
("<=2.0" , "1.0.dev1" , False ),
531
533
("<=2.0.dev1" , "1.0a1" , True ),
532
534
],
0 commit comments