File tree 1 file changed +9
-0
lines changed
1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change 12
12
from array_api_tests import _array_module as xp
13
13
from array_api_tests import api_version
14
14
from array_api_tests ._array_module import _UndefinedStub
15
+ from array_api_tests .stubs import EXTENSIONS
16
+ from array_api_tests import xp_name
15
17
16
18
from reporting import pytest_metadata , pytest_json_modifyreport , add_extra_json_metadata # noqa
17
19
20
+ def pytest_report_header (config ):
21
+ disabled_extensions = config .getoption ("--disable-extension" )
22
+ enabled_extensions = sorted ({
23
+ ext for ext in EXTENSIONS + ['fft' ] if ext not in disabled_extensions and xp_has_ext (ext )
24
+ })
25
+
26
+ return f"Array API Tests Module: { xp_name } . API Version: { api_version } . Enabled Extensions: { ', ' .join (enabled_extensions )} "
18
27
19
28
def pytest_addoption (parser ):
20
29
# Hypothesis max examples
You can’t perform that action at this time.
0 commit comments