File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change 1313from array_api_tests import api_version
1414from array_api_tests ._array_module import _UndefinedStub
1515from array_api_tests .stubs import EXTENSIONS
16- from array_api_tests import xp_name
16+ from array_api_tests import xp_name , xp as array_module
1717
1818from reporting import pytest_metadata , pytest_json_modifyreport , add_extra_json_metadata # noqa
1919
@@ -23,7 +23,12 @@ def pytest_report_header(config):
2323 ext for ext in EXTENSIONS + ['fft' ] if ext not in disabled_extensions and xp_has_ext (ext )
2424 })
2525
26- return f"Array API Tests Module: { xp_name } . API Version: { api_version } . Enabled Extensions: { ', ' .join (enabled_extensions )} "
26+ try :
27+ array_module_version = array_module .__version__
28+ except AttributeError :
29+ array_module_version = "version unknown"
30+
31+ return f"Array API Tests Module: { xp_name } ({ array_module_version } ). API Version: { api_version } . Enabled Extensions: { ', ' .join (enabled_extensions )} "
2732
2833def pytest_addoption (parser ):
2934 # Hypothesis max examples
You can’t perform that action at this time.
0 commit comments