Download data/conftest.py from introvoyz045/hensmith: direct link, hf CLI and curl.
- Browser
- Download file 499 Bytes
-
https://huggingface.co/datasets/introvoyz045/hensmith/resolve/main/data/conftest.py
- Command line
-
hf download hf://datasets/introvoyz045/hensmith/data/conftest.py
-
curl -L -o conftest.py https://huggingface.co/datasets/introvoyz045/hensmith/resolve/main/data/conftest.py
499 Bytes
| # -*- coding: utf-8 -*- | |
| """ | |
| Configuration for pytest to run with and without numba JIT compiled functions. | |
| """ | |
| import os | |
| def pytest_addoption(parser): | |
| parser.addoption( | |
| "--disable-numba", action="store", default="1", help="my option: 0 or 1" | |
| ) | |
| def pytest_configure(config): | |
| os.environ["NUMBA_DISABLE_JIT"] = config.getoption("--disable-numba") | |
| os.environ["DISABLE_PREFERENCES"] = "1" | |
| os.environ["FILTER_WARNINGS"] = "1" | |
| os.environ["PY_IGNORE_IMPORTMISMATCH"] = "1" | |