File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -171,20 +171,20 @@ def _check_python_version(session: nox.Session) -> None:
171171 python_version = session .python .lstrip ("py-" )
172172 implementation = "pypy"
173173 else :
174- python_version = session .python
174+ # TODO: check free threaded match
175+ python_version = session .python .rstrip ("t" )
175176 implementation = "cpython"
176177 session .run (
177178 "python" ,
178179 "-c" ,
179180 "import sys; assert '.'.join(str(v) for v in sys.version_info[:2]) =="
180181 f" '{ python_version } '" ,
181182 )
182- if python_version [:2 ] != "2." :
183- session .run (
184- "python" ,
185- "-c" ,
186- f"import sys; assert sys.implementation.name == '{ implementation } '" ,
187- )
183+ session .run (
184+ "python" ,
185+ "-c" ,
186+ f"import sys; assert sys.implementation.name == '{ implementation } '" ,
187+ )
188188
189189
190190@nox .session (
You can’t perform that action at this time.
0 commit comments