Skip to content

Commit d094951

Browse files
committed
Include the array_api_tests version in the JSON report metadata
1 parent 1f5284e commit d094951

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

reporting.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
from array_api_tests.dtype_helpers import dtype_to_name
22
from array_api_tests import _array_module as xp
3+
from array_api_tests import __version__
34

45
from types import BuiltinFunctionType, FunctionType
56
import dataclasses
@@ -34,6 +35,7 @@ def pytest_metadata(metadata):
3435
Additional global metadata for --json-report.
3536
"""
3637
metadata['array_api_tests_module'] = xp.mod_name
38+
metadata['array_api_tests_version'] = __version__
3739

3840
@fixture(autouse=True)
3941
def add_api_name_to_metadata(request, json_metadata):

0 commit comments

Comments
 (0)