Commit 415d646
Add ARRAY_API_TESTS_VERBOSE_SPECIAL_CASES environment variable
When ARRAY_API_TESTS_VERBOSE_SPECIAL_CASES=1 is set, the parser emits
each special case line during parsing in the format:
"SPEC_CASE: function_name: special_case_line"
This allows real-time tracking of special cases during test runs with:
ARRAY_API_TESTS_VERBOSE_SPECIAL_CASES=1 ARRAY_API_TESTS_MODULE=array_api_strict pytest array_api_tests/test_special_cases.py -s
Changes:
- Added _VERBOSE_SPECIAL_CASES flag based on environment variable
- Modified parse_unary_case_block() to emit SPEC_CASE lines when enabled
- Modified parse_binary_case_block() to emit SPEC_CASE lines when enabled
Co-authored-by: ev-br <2133832+ev-br@users.noreply.github.com>1 parent 710f52d commit 415d646
1 file changed
Lines changed: 12 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
| |||
35 | 36 | | |
36 | 37 | | |
37 | 38 | | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
38 | 42 | | |
39 | 43 | | |
40 | 44 | | |
| |||
879 | 883 | | |
880 | 884 | | |
881 | 885 | | |
| 886 | + | |
| 887 | + | |
| 888 | + | |
| 889 | + | |
882 | 890 | | |
883 | 891 | | |
884 | 892 | | |
| |||
1386 | 1394 | | |
1387 | 1395 | | |
1388 | 1396 | | |
| 1397 | + | |
| 1398 | + | |
| 1399 | + | |
| 1400 | + | |
1389 | 1401 | | |
1390 | 1402 | | |
1391 | 1403 | | |
| |||
0 commit comments