Skip to content

Commit f08da7f

Browse files
committed
Remove --ci option
And move meta tests to top-level meta_tests folder
1 parent 8bac520 commit f08da7f

32 files changed

+33
-84
lines changed

.github/workflows/numpy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,4 @@ jobs:
2828
env:
2929
ARRAY_API_TESTS_MODULE: numpy.array_api
3030
run: |
31-
pytest -v -rxXfE --ci --skips-file numpy-skips.txt
31+
pytest -v -rxXfE --skips-file numpy-skips.txt array_api_tests/

README.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -161,12 +161,6 @@ You can specify the API version to use when testing via the
161161
array module's `__array_api_version__` value, and if that attribute doesn't
162162
exist then we fallback to `"2021.12"`.
163163

164-
#### CI flag
165-
166-
Use the `--ci` flag to run only the primary and special cases tests. You can
167-
ignore the other test cases as they are redundant for the purposes of checking
168-
compliance.
169-
170164
#### Data-dependent shapes
171165

172166
Use the `--disable-data-dependent-shapes` flag to skip testing functions which have

array_api_tests/test_array_object.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@
1616
from . import xp as _xp
1717
from .typing import DataType, Index, Param, Scalar, ScalarType, Shape
1818

19-
pytestmark = pytest.mark.ci
20-
2119

2220
def scalar_objects(
2321
dtype: DataType, shape: Shape

array_api_tests/test_constants.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@
77
from . import xp
88
from .typing import Array
99

10-
pytestmark = pytest.mark.ci
11-
1210

1311
def assert_scalar_float(name: str, c: Any):
1412
assert isinstance(c, SupportsFloat), f"{name}={c!r} does not look like a float"

array_api_tests/test_creation_functions.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
from itertools import count
44
from typing import Iterator, NamedTuple, Union
55

6-
import pytest
76
from hypothesis import assume, given, note
87
from hypothesis import strategies as st
98

@@ -15,8 +14,6 @@
1514
from . import xps
1615
from .typing import DataType, Scalar
1716

18-
pytestmark = pytest.mark.ci
19-
2017

2118
class frange(NamedTuple):
2219
start: float

array_api_tests/test_data_type_functions.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@
1414
from . import xp as _xp
1515
from .typing import DataType
1616

17-
pytestmark = pytest.mark.ci
18-
1917

2018
# TODO: test with complex dtypes
2119
def non_complex_dtypes():

array_api_tests/test_fft.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
from . import xp
1818

1919
pytestmark = [
20-
pytest.mark.ci,
2120
pytest.mark.xp_extension("fft"),
2221
pytest.mark.min_version("2022.12"),
2322
]

array_api_tests/test_has_names.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@
99
from .stubs import (array_attributes, array_methods, category_to_funcs,
1010
extension_to_funcs, EXTENSIONS)
1111

12-
pytestmark = pytest.mark.ci
13-
1412
has_name_params = []
1513
for ext, stubs in extension_to_funcs.items():
1614
for stub in stubs:

array_api_tests/test_indexing_functions.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@
99
from . import shape_helpers as sh
1010
from . import xps
1111

12-
pytestmark = pytest.mark.ci
13-
1412

1513
@pytest.mark.min_version("2022.12")
1614
@given(

array_api_tests/test_linalg.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,6 @@
4343
from . import _array_module as xp
4444
from ._array_module import linalg
4545

46-
pytestmark = pytest.mark.ci
47-
4846
def assert_equal(x, y, msg_extra=None):
4947
extra = '' if not msg_extra else f' ({msg_extra})'
5048
if x.dtype in dh.all_float_dtypes:

0 commit comments

Comments
 (0)