|
2 | 2 |
|
3 | 3 | from numpy.testing import assert_raises |
4 | 4 |
|
| 5 | +import pytest |
| 6 | + |
5 | 7 | from .. import asarray, _elementwise_functions |
6 | 8 | from .._elementwise_functions import bitwise_left_shift, bitwise_right_shift |
7 | 9 | from .._dtypes import ( |
@@ -79,6 +81,7 @@ def nargs(func): |
79 | 81 | "minimum": "real numeric", |
80 | 82 | "multiply": "numeric", |
81 | 83 | "negative": "numeric", |
| 84 | + "nextafter": "real floating-point", |
82 | 85 | "not_equal": "all", |
83 | 86 | "positive": "numeric", |
84 | 87 | "pow": "numeric", |
@@ -126,7 +129,8 @@ def _array_vals(dtypes): |
126 | 129 | yield asarray(1., dtype=d) |
127 | 130 |
|
128 | 131 | # Use the latest version of the standard so all functions are included |
129 | | - set_array_api_strict_flags(api_version="2023.12") |
| 132 | + with pytest.warns(UserWarning): |
| 133 | + set_array_api_strict_flags(api_version="2024.12") |
130 | 134 |
|
131 | 135 | for func_name, types in elementwise_function_input_types.items(): |
132 | 136 | dtypes = _dtype_categories[types] |
@@ -162,7 +166,8 @@ def _array_vals(): |
162 | 166 | yield asarray(1.0, dtype=d) |
163 | 167 |
|
164 | 168 | # Use the latest version of the standard so all functions are included |
165 | | - set_array_api_strict_flags(api_version="2023.12") |
| 169 | + with pytest.warns(UserWarning): |
| 170 | + set_array_api_strict_flags(api_version="2024.12") |
166 | 171 |
|
167 | 172 | for x in _array_vals(): |
168 | 173 | for func_name, types in elementwise_function_input_types.items(): |
|
0 commit comments