You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ENH: start adding "repro snippets" for failed assertions
It is not always easy to tell what exactly failed with hypothesis (gh-379).
Thus add a failing snippet to the exceptions' output.
For instance, run
$ ARRAY_API_TESTS_MODULE=array_api_compat.torch pytest array_api_tests/test_array_object.py::test_getitem
to see
E ValueError: step must be greater than zero
E
E ========== FAILING CODE SNIPPET:
E tensor([False, False])[(slice(1, 0, -1),)]
E ====================
0 commit comments