Skip to content

Commit 1c42d3a

Browse files
committed
Add a check that pytest-json-report is installed
1 parent d62073a commit 1c42d3a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

reporting.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@
99
from hypothesis.strategies import SearchStrategy
1010

1111
from pytest import mark
12+
try:
13+
import pytest_jsonreport # noqa
14+
except ImportError:
15+
raise ImportError("pytest-json-report is required to run the array API tests")
1216

1317
def to_json_serializable(o):
1418
if o in dtype_to_name:

0 commit comments

Comments
 (0)