|
22 | 22 | get_integer_float_dtypes, |
23 | 23 | has_support_aspect64, |
24 | 24 | numpy_version, |
| 25 | + requires_memory, |
25 | 26 | ) |
26 | 27 |
|
| 28 | +# Build a list of bin sizes to check the histogram |
| 29 | +_bin_counts = [10, 10**2, 10**3, 10**4, 10**5] |
| 30 | +if requires_memory(12): |
| 31 | + _bin_counts += [10**6] |
| 32 | + |
27 | 33 |
|
28 | 34 | class TestDigitize: |
29 | 35 | @pytest.mark.parametrize("dtype", get_integer_float_dtypes()) |
@@ -488,7 +494,7 @@ def test_weights_another_sycl_queue(self): |
488 | 494 |
|
489 | 495 | @pytest.mark.parametrize( |
490 | 496 | "bins_count", |
491 | | - [10, 10**2, 10**3, 10**4, 10**5, 10**6], |
| 497 | + _bin_counts, |
492 | 498 | ) |
493 | 499 | def test_different_bins_amount(self, bins_count): |
494 | 500 | v = numpy.linspace(0, bins_count, bins_count, dtype=numpy.float32) |
@@ -586,7 +592,7 @@ def test_weights_unsupported_dtype(self, xp, dt): |
586 | 592 |
|
587 | 593 | @pytest.mark.parametrize( |
588 | 594 | "bins_count", |
589 | | - [10, 10**2, 10**3, 10**4, 10**5, 10**6], |
| 595 | + _bin_counts, |
590 | 596 | ) |
591 | 597 | def test_different_bins_amount(self, bins_count): |
592 | 598 | v = numpy.arange(0, bins_count, dtype=int) |
@@ -865,7 +871,7 @@ def test_weights_another_sycl_queue(self): |
865 | 871 |
|
866 | 872 | @pytest.mark.parametrize( |
867 | 873 | "bins_count", |
868 | | - [10, 10**2, 10**3, 10**4, 10**5, 10**6], |
| 874 | + _bin_counts, |
869 | 875 | ) |
870 | 876 | def test_different_bins_amount(self, bins_count): |
871 | 877 | v = numpy.linspace(0, bins_count, bins_count, dtype=numpy.float32) |
|
0 commit comments