summaryrefslogtreecommitdiff
path: root/test cases/python/3 cython
diff options
context:
space:
mode:
authorMichael Hirsch <scivision@users.noreply.github.com>2020-07-12 09:53:17 -0400
committerMichael Hirsch <scivision@users.noreply.github.com>2020-07-12 09:53:26 -0400
commitc9d8d4628e4ae4409d09f255cc18517cdd5f1fbe (patch)
treea2f7ca924e78ab41c521f8f39cbf9d75fc39a9f7 /test cases/python/3 cython
parent7851495064521b179b2fd02fdc73e3d55da4ae86 (diff)
downloadmeson-c9d8d4628e4ae4409d09f255cc18517cdd5f1fbe.tar.gz
simplify/correct test logic
before this, tests were being skipped on Ubuntu 20.04 with Anaconda Python Now, all 5 tests success
Diffstat (limited to 'test cases/python/3 cython')
-rw-r--r--test cases/python/3 cython/meson.build7
1 files changed, 3 insertions, 4 deletions
diff --git a/test cases/python/3 cython/meson.build b/test cases/python/3 cython/meson.build
index 18c05d4d5..5fc07a882 100644
--- a/test cases/python/3 cython/meson.build
+++ b/test cases/python/3 cython/meson.build
@@ -10,14 +10,13 @@ if not cython.found()
error('MESON_SKIP_TEST: Cython3 not found.')
endif
-py3_dep = dependency('python3', required : false)
+py_mod = import('python')
+py3 = py_mod.find_installation()
+py3_dep = py3.dependency(required: false)
if not py3_dep.found()
error('MESON_SKIP_TEST: Python library not found.')
endif
-py_mod = import('python')
-py3 = py_mod.find_installation()
-py3_dep = py3.dependency()
subdir('libdir')
test('cython tester',