diff options
author | Michał Górny <mgorny@gentoo.org> | 2021-03-28 10:00:14 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2021-03-28 10:00:14 +0200 |
commit | 6f2f26e08c6e0d476593c82ad31d13847f30cbf4 (patch) | |
tree | ecd414244728aaf6a45d4b33cf712d6a4d133e7e /numpy/array_api/_manipulation_functions.py | |
parent | 9afc58010f7027711b22e2eea9e97c2940262928 (diff) | |
download | numpy-6f2f26e08c6e0d476593c82ad31d13847f30cbf4.tar.gz |
BUG: Fix test_ccompiler_opt when path contains dots
Fix test_ccompiler_opt not to be confused by dots occurring on the path
to the temporary directory, by using only the source file's basename
when grabbing options. Otherwise, the test can fail with mismatches
such as:
E AssertionError: 'sources_status' returns different targets than the compiled targets
E ['AVX512F', 'AVX2'] != ['(20 2/TEMP/TMPB0YHSCAI/TEST_TARGETS AVX512F)', '(20 2/TEMP/TMPB0YHSCAI/TEST_TARGETS AVX2)']
This is because our TMPDIR value includes numpy version, i.e. 1.20.2.
The splitting happens on the first dot that is part of the directory
path rather than test filename.
Diffstat (limited to 'numpy/array_api/_manipulation_functions.py')
0 files changed, 0 insertions, 0 deletions