diff options
| author | Michael Hirsch <scivision@users.noreply.github.com> | 2020-07-12 09:53:17 -0400 |
|---|---|---|
| committer | Michael Hirsch <scivision@users.noreply.github.com> | 2020-07-12 09:53:26 -0400 |
| commit | c9d8d4628e4ae4409d09f255cc18517cdd5f1fbe (patch) | |
| tree | a2f7ca924e78ab41c521f8f39cbf9d75fc39a9f7 /test cases/python/3 cython | |
| parent | 7851495064521b179b2fd02fdc73e3d55da4ae86 (diff) | |
| download | meson-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.build | 7 |
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', |
