From be3471293363b518eb07a1eb041fb3e548de1bef Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Mon, 13 Jun 2022 10:08:08 +1000 Subject: meson: default to pytest-3 first, then pytest At least Ubuntu 20.04 has pytest point at the Python 2.x compatible version, resulting in syntax errors when trying to parse our Python 3 code files. So let's check pytest-3 first since that is the compatible version and fall back to normal pytest only where it's missing. Fixes #272 Signed-off-by: Peter Hutterer --- meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meson.build b/meson.build index e9d2173..45eb7e7 100644 --- a/meson.build +++ b/meson.build @@ -379,7 +379,7 @@ if build_unittests modules: ['libevdev', 'pytest', 'yaml', 'attr', 'gi'] ) - pytest = find_program('pytest', 'pytest-3') + pytest = find_program('pytest-3', 'pytest') test('pytest', pytest, args: ['--verbose', '--log-level=DEBUG'], -- cgit v1.2.1