Summary text
your code
| #!/usr/bin/env python | |
| import pytest | |
| from hypothesis import assume, given, strategies as st | |
| from hypothesis.errors import InvalidArgument | |
| from hypothesis.extra.array_api import DTYPE_NAMES, NUMERIC_NAMES | |
| from tests.array_api.common import COMPLIANT_XP, xp, xps | |
| from tests.common.debug import find_any, minimal | |
| from tests.common.utils import fails_with, flaky |
| # Wrapper of dask for use with github.com/data-apis/array-api-tests | |
| # Tested with dask version 2022.01.0 | |
| # How to use: | |
| # 1. Place this file in `array_api_tests/_dask.py` | |
| # 2. In `array_api_tests/_array_module.py` replace `array_module = None` with | |
| # `from ._dask import array_module` | |
| from dask import array as da |
| # Wrapper of mxnet for use with github.com/data-apis/array-api-tests | |
| # Tested with dask version 1.9.0 | |
| # How to use: | |
| # 1. Place this file in `array_api_tests/_mxnet.py` | |
| # 2. In `array_api_tests/_array_module.py` replace `array_module = None` with | |
| # `from ._mxnet import array_module` | |
| import mxnet as mx |
| from importlib.util import spec_from_file_location, module_from_spec | |
| from pathlib import Path | |
| from types import ModuleType | |
| def get_mod(path: Path) -> ModuleType: | |
| mod_name = path.name.replace(".py", "") | |
| spec = spec_from_file_location(mod_name, path) | |
| assert spec is not None | |
| mod = module_from_spec(spec) | |
| assert spec.loader is not None |
your code