Commit a015842
committed
Skip device-unsupported dtypes in for_dtypes_combination
for_dtypes already skips dtypes the default device cannot represent
natively (float64/complex128 without fp64 support, float16 without fp16
support), but for_dtypes_combination did not, so combination tests could
attempt to allocate an unsupported-dtype array and fail with a device
ValueError instead of exercising the intended code path. This surfaced in
the new bincount empty-with-weights test.
Factor the per-dtype check into a shared helper and apply it in both
decorators so combination tests skip such dtypes consistently.1 parent e5966bc commit a015842
1 file changed
Lines changed: 17 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
991 | 991 | | |
992 | 992 | | |
993 | 993 | | |
| 994 | + | |
| 995 | + | |
| 996 | + | |
| 997 | + | |
| 998 | + | |
| 999 | + | |
| 1000 | + | |
| 1001 | + | |
| 1002 | + | |
| 1003 | + | |
994 | 1004 | | |
995 | 1005 | | |
996 | 1006 | | |
| |||
1008 | 1018 | | |
1009 | 1019 | | |
1010 | 1020 | | |
1011 | | - | |
1012 | | - | |
1013 | | - | |
1014 | | - | |
1015 | | - | |
1016 | | - | |
1017 | | - | |
1018 | | - | |
1019 | | - | |
1020 | | - | |
| 1021 | + | |
1021 | 1022 | | |
1022 | 1023 | | |
1023 | 1024 | | |
| |||
1331 | 1332 | | |
1332 | 1333 | | |
1333 | 1334 | | |
| 1335 | + | |
| 1336 | + | |
| 1337 | + | |
| 1338 | + | |
| 1339 | + | |
| 1340 | + | |
1334 | 1341 | | |
1335 | 1342 | | |
1336 | 1343 | | |
| |||
0 commit comments