File tree Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -307,6 +307,27 @@ def raises_ioerror(var):
307
307
with patch ('pip.pep425tags.sysconfig.get_config_var' , raises_ioerror ):
308
308
assert len (pip .pep425tags .get_supported ())
309
309
310
+ def test_no_hyphen_tag (self ):
311
+ """
312
+ Test that no tag contains a hyphen.
313
+ """
314
+ import pip .pep425tags
315
+
316
+ get_config_var = pip .pep425tags .sysconfig .get_config_var
317
+
318
+ def mock_soabi (var ):
319
+ if var == 'SOABI' :
320
+ return 'cpython-35m-darwin'
321
+ return get_config_var (var )
322
+
323
+ with patch ('pip.pep425tags.sysconfig.get_config_var' , mock_soabi ):
324
+ supported = pip .pep425tags .get_supported ()
325
+
326
+ for (py , abi , plat ) in supported :
327
+ assert '-' not in py
328
+ assert '-' not in abi
329
+ assert '-' not in plat
330
+
310
331
311
332
class TestMoveWheelFiles (object ):
312
333
"""
You can’t perform that action at this time.
0 commit comments