diff options
author | Xavier Claessens <xavier.claessens@collabora.com> | 2019-12-09 09:28:23 -0500 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2019-12-10 18:02:41 +0200 |
commit | 1dda7cde3992a5945930f0495d391e05b0fbed6b (patch) | |
tree | a0c61475501c2ec7d3ef7b1ae6ffb14ab18f2482 | |
parent | 552e78da4d1837699cc706e59078046ce4a1a2a5 (diff) | |
download | meson-1dda7cde3992a5945930f0495d391e05b0fbed6b.zip meson-1dda7cde3992a5945930f0495d391e05b0fbed6b.tar.gz meson-1dda7cde3992a5945930f0495d391e05b0fbed6b.tar.bz2 |
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.
-rwxr-xr-x | run_unittests.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/run_unittests.py b/run_unittests.py index b0ee48f..b0668aa 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 |