From dadf6e2233f15beff6b544850fee7bfa765e951e Mon Sep 17 00:00:00 2001 From: Jon Turney Date: Tue, 14 Aug 2018 23:46:15 +0100 Subject: Tests for version constraints on custom lookup dependencies --- test cases/python3/2 extmodule/meson.build | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'test cases/python3/2 extmodule') diff --git a/test cases/python3/2 extmodule/meson.build b/test cases/python3/2 extmodule/meson.build index 0ecc81336..4916a6905 100644 --- a/test cases/python3/2 extmodule/meson.build +++ b/test cases/python3/2 extmodule/meson.build @@ -14,6 +14,10 @@ if py3_dep.found() py3, args : files('blaster.py'), env : ['PYTHONPATH=' + pypathdir]) + + # Check we can apply a version constraint + dependency('python3', version: '>=@0@'.format(py3_dep.version())) + else error('MESON_SKIP_TEST: Python3 libraries not found, skipping test.') endif -- cgit v1.2.3