We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b2f469f commit ef9f070Copy full SHA for ef9f070
onnx_diagnostic/ext_test_case.py
@@ -399,14 +399,14 @@ def has_cuda() -> bool:
399
return torch.cuda.device_count() > 0
400
401
402
-def requires_python(version: Tuple[int,...], msg: str = ""):
+def requires_python(version: Tuple[int, ...], msg: str = ""):
403
"""
404
Skips a test if python is too old.
405
406
:param msg: to overwrite the message
407
:param version: minimum version
408
409
- if sys.version_info[:len(version)] < version:
+ if sys.version_info[: len(version)] < version:
410
return unittest.skip(msg or f"python not recent enough {sys.version_info} < {version}")
411
return lambda x: x
412
0 commit comments