]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commitdiff
python3-numpy: Skip running test_validate_transcendentals ptest
authorKhem Raj <raj.khem@gmail.com>
Mon, 11 Aug 2025 19:54:37 +0000 (12:54 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 14 Aug 2025 07:18:49 +0000 (08:18 +0100)
This test fails [1] with x86-64-v3, surfaces when we switch default
tune for qemux86-64 to be x86-64-v3 or newer

Test seems to compare exact floating point numbers but it might not be
precise enough and comparison may fail.

[1] https://github.com/numpy/numpy/issues/27460

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/python/python3-numpy/run-ptest

index 6e76dffc59b531dcab2ee2a61c4260cc3c123a08..a1c80323d606e180243dbcb76f53b4994bc8dc9c 100644 (file)
@@ -11,5 +11,7 @@ mkdir -p "$PYTEST_DEBUG_TEMPROOT"
 # test_mem_policy fails if there's no C compiler present, but we don't want to
 # include gcc as a ptest dependency, so skip that. test_big_arrays uses up a
 # large amount of storage, so skip that too.
-pytest --automake -m "not slow" -k "not test_mem_policy and not test_big_arrays" /usr/lib/python3.*/site-packages/numpy
+# remove test_validate_transcendentals if
+# https://github.com/numpy/numpy/issues/27460 is resolved
+pytest --automake -m "not slow" -k "not test_mem_policy and not test_big_arrays and not test_validate_transcendentals" /usr/lib/python3.*/site-packages/numpy
 rm -rf "$PYTEST_DEBUG_TEMPROOT"