run_unittests: Disable pytest with python <= 3.5

It's causing issues in some CI runners, it looks like it could be that
bug: https://github.com/pytest-dev/pytest-xdist/issues/204.
pull/6326/head
Xavier Claessens 5 years ago committed by Jussi Pakkanen
parent 552e78da4d
commit 1dda7cde39
  1. 2
      run_unittests.py

@ -7026,6 +7026,8 @@ def main():
import pytest # noqa: F401
# Need pytest-xdist for `-n` arg
import xdist # noqa: F401
if sys.version_info.major <= 3 and sys.version_info.minor <= 5:
raise ImportError('pytest with python <= 3.5 is causing issues on the CI')
pytest_args = ['-n', 'auto', './run_unittests.py']
pytest_args += convert_args(sys.argv[1:])
return subprocess.run(python_command + ['-m', 'pytest'] + pytest_args).returncode

Loading…
Cancel
Save