Skip to content

Commit af8ea87

Browse files
authored
tests: fix action test (#1036)
1 parent e0c34eb commit af8ea87

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

noxfile.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff 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(

0 commit comments

Comments
 (0)