aboutsummaryrefslogtreecommitdiff
path: root/test cases/python
diff options
context:
space:
mode:
authorEli Schwartz <eschwartz@archlinux.org>2022-03-17 07:27:57 -0400
committerEli Schwartz <eschwartz@archlinux.org>2022-03-17 07:29:55 -0400
commitfe2c0ff1e20403e4c0e26c705e3742d0e1ab1344 (patch)
tree498816f432375be04a4a8667a582baa5ff29e03a /test cases/python
parent4b0c0810df8e0fae9529d879539b8926b5b278a3 (diff)
downloadmeson-fe2c0ff1e20403e4c0e26c705e3742d0e1ab1344.zip
meson-fe2c0ff1e20403e4c0e26c705e3742d0e1ab1344.tar.gz
meson-fe2c0ff1e20403e4c0e26c705e3742d0e1ab1344.tar.bz2
tests: don't skip python version tests if python is found but its dep is broken
If a version of python is installed for testing against, we should assume it's actually important to test against it.
Diffstat (limited to 'test cases/python')
-rw-r--r--test cases/python/8 different python versions/meson.build16
1 files changed, 6 insertions, 10 deletions
diff --git a/test cases/python/8 different python versions/meson.build b/test cases/python/8 different python versions/meson.build
index 5b44394..90556bc 100644
--- a/test cases/python/8 different python versions/meson.build
+++ b/test cases/python/8 different python versions/meson.build
@@ -6,18 +6,14 @@ py_mod = import('python')
py = py_mod.find_installation(get_option('python'), required : false)
if py.found()
- py_dep = py.dependency(required : false)
+ py_dep = py.dependency()
- if py_dep.found()
- subdir('ext')
+ subdir('ext')
- test('extmod',
- py,
- args : files('blaster.py'),
- env : ['PYTHONPATH=' + pypathdir])
- else
- error('MESON_SKIP_TEST: Python libraries not found, skipping test.')
- endif
+ test('extmod',
+ py,
+ args : files('blaster.py'),
+ env : ['PYTHONPATH=' + pypathdir])
else
error('MESON_SKIP_TEST: Python not found, skipping test.')
endif