@@ -45,6 +45,16 @@ def test_conflicting_base_python_factor() -> None:
4545 Python .extract_base_python (name )
4646
4747
48+ def test_conflicting_base_python_factor_explicit_version () -> None :
49+ with pytest .raises (ValueError , match = r"conflicting factors 3\.10, 3\.11 in 3\.10-3\.11" ):
50+ Python .extract_base_python ("3.10-3.11" )
51+
52+
53+ def test_conflicting_base_python_factor_mixed_style () -> None :
54+ with pytest .raises (ValueError , match = r"conflicting factors py310, 3\.11 in py310-3\.11" ):
55+ Python .extract_base_python ("py310-3.11" )
56+
57+
4858def test_build_wheel_in_non_base_pkg_env (
4959 tox_project : ToxProjectCreator ,
5060 patch_prev_py : Callable [[bool ], tuple [str , str ]],
@@ -142,6 +152,11 @@ def test_diff_msg_no_diff() -> None:
142152 ("2.7t" , "2.7t" ),
143153 ("pypy-3.10" , "pypy3.10" ),
144154 ("pypy-3.10t" , "pypy3.10t" ),
155+ ("3.10-tests" , "3.10" ),
156+ ("3.10t-tests" , "3.10t" ),
157+ ("tests-3.10" , "3.10" ),
158+ ("tests-3.10t" , "3.10t" ),
159+ ("foo-3.14-bar" , "3.14" ),
145160 ],
146161 ids = lambda a : "|" .join (a ) if isinstance (a , list ) else str (a ),
147162)
0 commit comments