File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change 1212from array_api_tests import _array_module as xp
1313from array_api_tests import api_version
1414from array_api_tests ._array_module import _UndefinedStub
15+ from array_api_tests .stubs import EXTENSIONS
16+ from array_api_tests import xp_name
1517
1618from reporting import pytest_metadata , pytest_json_modifyreport , add_extra_json_metadata # noqa
1719
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 )} "
1827
1928def pytest_addoption (parser ):
2029 # Hypothesis max examples
You can’t perform that action at this time.
0 commit comments