-
Notifications
You must be signed in to change notification settings - Fork 137
Open
Labels
Description
Description
With numba 0.61 coverage will work for lines that are seen during compilation: https://numba.readthedocs.io/en/stable/release/0.61.0-notes.html#added-compile-time-code-coverage
This means we may be able to stop running tests in object mode just for coverage purposes:
pytensor/tests/link/numba/test_basic.py
Lines 274 to 279 in cc8c499
# Get some coverage (and catch errors in python mode before unreadable numba ones) | |
if eval_obj_mode: | |
test_inputs_copy = ( | |
(inp.copy() for inp in test_inputs) if inplace else test_inputs | |
) | |
eval_python_only(graph_inputs, graph_outputs, test_inputs_copy, mode=numba_mode) |