Skip to content

Stop running numba tests in object mode for coverage #1220

Open
@ricardoV94

Description

@ricardoV94

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:

# 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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions