Skip to content

Commit ac2fd4e

Browse files
author
Mike Schneider
committed
update py version for PT 2.0 tests
1 parent f840adf commit ac2fd4e

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

tests/conftest.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,9 @@ def mxnet_eia_latest_py_version():
243243

244244
@pytest.fixture(scope="module", params=["py2", "py3"])
245245
def pytorch_training_py_version(pytorch_training_version, request):
246-
if Version(pytorch_training_version) >= Version("1.13"):
246+
if Version(pytorch_training_version) >= Version("2.0"):
247+
return "py310"
248+
elif Version(pytorch_training_version) >= Version("1.13"):
247249
return "py39"
248250
elif Version(pytorch_training_version) >= Version("1.9"):
249251
return "py38"
@@ -255,7 +257,9 @@ def pytorch_training_py_version(pytorch_training_version, request):
255257

256258
@pytest.fixture(scope="module", params=["py2", "py3"])
257259
def pytorch_inference_py_version(pytorch_inference_version, request):
258-
if Version(pytorch_inference_version) >= Version("1.13"):
260+
if Version(pytorch_inference_version) >= Version("2.0"):
261+
return "py310"
262+
elif Version(pytorch_inference_version) >= Version("1.13"):
259263
return "py39"
260264
elif Version(pytorch_inference_version) >= Version("1.9"):
261265
return "py38"

0 commit comments

Comments
 (0)