From 1dda7cde3992a5945930f0495d391e05b0fbed6b Mon Sep 17 00:00:00 2001 From: Xavier Claessens Date: Mon, 9 Dec 2019 09:28:23 -0500 Subject: [PATCH] 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. --- run_unittests.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/run_unittests.py b/run_unittests.py index b0ee48fc1..b0668aa17 100755 --- a/run_unittests.py +++ b/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