Skip to content

Commit 5f88d4a

Browse files
committed
Update conftest.py
1 parent 5005984 commit 5f88d4a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/conftest.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,8 @@ def mxnet_eia_latest_py_version():
173173
def pytorch_training_py_version(pytorch_training_version, request):
174174
if Version(pytorch_training_version) < Version("1.5.0"):
175175
return request.param
176+
elif Version(pytorch_training_version) == Version("1.7.1"):
177+
return "py36"
176178
else:
177179
return "py3"
178180

@@ -181,6 +183,8 @@ def pytorch_training_py_version(pytorch_training_version, request):
181183
def pytorch_inference_py_version(pytorch_inference_version, request):
182184
if Version(pytorch_inference_version) < Version("1.4.0"):
183185
return request.param
186+
elif Version(pytorch_inference_version) == Version("1.7.1"):
187+
return "py36"
184188
else:
185189
return "py3"
186190

0 commit comments

Comments
 (0)