| 1 | Fromscip-debian debian numba 0.65.1+dfsg-3 numba/patches/`0010-Conditionally-skip-tests-requiring-more-CPUs-than-av.patch`#From.: Santiago Vila <[email protected]scip-debian . . . identity/`[email protected]`.> |
| 2 | Datescip-debian debian numba 0.65.1+dfsg-3 numba/patches/`0010-Conditionally-skip-tests-requiring-more-CPUs-than-av.patch`#Date.: Mon, 11 May 2026 14:00:25 +1000 |
| 3 | Subjectscip-debian debian numba 0.65.1+dfsg-3 numba/patches/`0010-Conditionally-skip-tests-requiring-more-CPUs-than-av.patch`#Subject.: Conditionally skip tests requiring more CPUs than available |
| 4 | |
| 5 | --- |
| 6 | numba/tests/test_parallel_backend.py | 7 +++++++ |
| 7 | numba/tests/test_parfors.py | 1 + |
| 8 | 2 files changed, 8 insertions(+) |
| 9 | |
| 10 | --- a/numba/tests/test_parallel_backend.pyscip-debian debian numba 0.65.1+dfsg-3 numba/upstream/`numba/tests/test_parallel_backend.py`: |
| 11 | +++ b/numba/tests/test_parallel_backend.pyscip-debian debian numba 0.65.1+dfsg-3 numba/upstream/`numba/tests/test_parallel_backend.py`: |
| 12 | @@ -433,6 +433,13 @@ |
| 13 | |
| 14 | TestSpecificBackend.generate() |
| 15 | |
| 16 | +_skip = unittest.skipIf(config.NUMBA_NUM_THREADS < 2, "Not enough CPU cores") |
| 17 | +for _name in ( |
| 18 | + 'test_random_concurrent_mix_use_tbb', |
| 19 | + 'test_random_concurrent_vectorize_tbb', |
| 20 | + 'test_threading_concurrent_mix_use_tbb', |
| 21 | +): |
| 22 | + setattr(TestSpecificBackend, _name, _skip(getattr(TestSpecificBackend, _name))) |
| 23 | |
| 24 | class ThreadLayerTestHelper(TestCase): |
| 25 | """ |
| 26 | --- a/numba/tests/test_parfors.pyscip-debian debian numba 0.65.1+dfsg-3 numba/upstream/`numba/tests/test_parfors.py`: |
| 27 | +++ b/numba/tests/test_parfors.pyscip-debian debian numba 0.65.1+dfsg-3 numba/upstream/`numba/tests/test_parfors.py`: |
| 28 | @@ -4881,6 +4881,7 @@ |
| 29 | |
| 30 | |
| 31 | @skip_parfors_unsupported |
| 32 | [email protected](config.NUMBA_NUM_THREADS < 2, "Not enough CPU cores") |
| 33 | class TestParforReductionSetNumThreads(TestCase): |
| 34 | """Test execution correctness on reductions with set_num_threads. |
| 35 | """ |
| 36 | --- a/numba/tests/test_array_analysis.pyscip-debian debian numba 0.65.1+dfsg-3 numba/upstream/`numba/tests/test_array_analysis.py`: |
| 37 | +++ b/numba/tests/test_array_analysis.pyscip-debian debian numba 0.65.1+dfsg-3 numba/upstream/`numba/tests/test_array_analysis.py`: |
| 38 | @@ -6,6 +6,7 @@ |
| 39 | from io import StringIO |
| 40 | |
| 41 | from numba import njit, typeof, prange |
| 42 | +from numba.core import config |
| 43 | from numba.core import ( |
| 44 | types, |
| 45 | typing, |
| 46 | @@ -1051,6 +1052,7 @@ |
| 47 | np.testing.assert_array_equal(test_impl(data), test_impl.py_func(data)) |
| 48 | |
| 49 | @skip_unsupported |
| 50 | + @unittest.skipIf(config.NUMBA_NUM_THREADS < 2, "Not enough CPU cores") |
| 51 | def test_global_tuple(self): |
| 52 | """make sure a global tuple with non-integer values does not cause errors |
| 53 | (test for #6726). |
| 54 | --- a/numba/tests/test_remove_dead.pyscip-debian debian numba 0.65.1+dfsg-3 numba/upstream/`numba/tests/test_remove_dead.py`: |
| 55 | +++ b/numba/tests/test_remove_dead.pyscip-debian debian numba 0.65.1+dfsg-3 numba/upstream/`numba/tests/test_remove_dead.py`: |
| 56 | @@ -25,6 +25,7 @@ |
| 57 | IRLegalization, NoPythonBackend, NativeLowering) |
| 58 | import numpy as np |
| 59 | from numba.tests.support import skip_parfors_unsupported, needs_blas, TestCase |
| 60 | +from numba.core import config |
| 61 | import unittest |
| 62 | |
| 63 | |
| 64 | @@ -295,6 +296,15 @@ |
| 65 | np.testing.assert_array_equal(test_res, py_res) |
| 66 | |
| 67 | |
| 68 | +_skip = unittest.skipIf(config.NUMBA_NUM_THREADS < 2, "Not enough CPU cores") |
| 69 | +for _name in ( |
| 70 | + 'test_alias_flat', |
| 71 | + 'test_alias_transpose2', |
| 72 | + 'test_alias_func_ext', |
| 73 | +): |
| 74 | + setattr(TestRemoveDead, _name, _skip(getattr(TestRemoveDead, _name))) |
| 75 | + |
| 76 | + |
| 77 | class TestSSADeadBranchPrune(TestCase): |
| 78 | """ |
| 79 | Test issues that required dead-branch-prune on SSA IR |
| 80 | --- a/numba/tests/test_try_except.pyscip-debian debian numba 0.65.1+dfsg-3 numba/upstream/`numba/tests/test_try_except.py`: |
| 81 | +++ b/numba/tests/test_try_except.pyscip-debian debian numba 0.65.1+dfsg-3 numba/upstream/`numba/tests/test_try_except.py`: |
| 82 | @@ -5,6 +5,7 @@ |
| 83 | import numpy as np |
| 84 | |
| 85 | from numba import njit, typed, objmode, prange |
| 86 | +from numba.core import config |
| 87 | from numba.core import ir_utils, ir |
| 88 | from numba.core.errors import ( |
| 89 | CompilerError, NumbaPerformanceWarning, TypingError, |
| 90 | @@ -847,5 +848,12 @@ |
| 91 | self.assertPreciseEqual(njit(parallel=True)(udt)(*args), expect) |
| 92 | |
| 93 | |
| 94 | +_skip = unittest.skipIf(config.NUMBA_NUM_THREADS < 2, "Not enough CPU cores") |
| 95 | +for _name in ( |
| 96 | + 'test_try_in_prange_reduction', |
| 97 | + 'test_try_in_prange_map', |
| 98 | +): |
| 99 | + setattr(TestTryExceptParfors, _name, _skip(getattr(TestTryExceptParfors, _name))) |
| 100 | + |
| 101 | if __name__ == '__main__': |
| 102 | unittest.main() |