Skip to content

Commit 444816e

Browse files
committed
Fixing Pytorch training python version in tests
1 parent 30fe0ee commit 444816e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/conftest.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,8 @@ def mxnet_eia_latest_py_version():
254254

255255
@pytest.fixture(scope="module", params=["py2", "py3"])
256256
def pytorch_training_py_version(pytorch_training_version, request):
257+
if Version(pytorch_training_version) >= Version("2.6"):
258+
return "py312"
257259
if Version(pytorch_training_version) >= Version("2.3"):
258260
return "py311"
259261
elif Version(pytorch_training_version) >= Version("2.0"):

0 commit comments

Comments
 (0)