Initial configuration commit
This commit is contained in:
commit
31c8abea59
266 changed files with 780274 additions and 0 deletions
56
typings/numpy/conftest.pyi
Normal file
56
typings/numpy/conftest.pyi
Normal file
|
@ -0,0 +1,56 @@
|
|||
"""
|
||||
This type stub file was generated by pyright.
|
||||
"""
|
||||
|
||||
import pytest
|
||||
|
||||
"""
|
||||
Pytest configuration and fixtures for the Numpy test suite.
|
||||
"""
|
||||
_old_fpu_mode = ...
|
||||
_collect_results = ...
|
||||
_pytest_ini = ...
|
||||
def pytest_configure(config): # -> None:
|
||||
...
|
||||
|
||||
def pytest_addoption(parser): # -> None:
|
||||
...
|
||||
|
||||
def pytest_sessionstart(session): # -> None:
|
||||
...
|
||||
|
||||
@pytest.hookimpl()
|
||||
def pytest_itemcollected(item): # -> None:
|
||||
"""
|
||||
Check FPU precision mode was not changed during test collection.
|
||||
|
||||
The clumsy way we do it here is mainly necessary because numpy
|
||||
still uses yield tests, which can execute code at test collection
|
||||
time.
|
||||
"""
|
||||
...
|
||||
|
||||
@pytest.fixture(scope="function", autouse=True)
|
||||
def check_fpu_mode(request): # -> Generator[None, Any, None]:
|
||||
"""
|
||||
Check FPU precision mode was not changed during the test.
|
||||
"""
|
||||
...
|
||||
|
||||
@pytest.fixture(autouse=True)
|
||||
def add_np(doctest_namespace): # -> None:
|
||||
...
|
||||
|
||||
@pytest.fixture(autouse=True)
|
||||
def env_setup(monkeypatch): # -> None:
|
||||
...
|
||||
|
||||
@pytest.fixture(params=[True, False])
|
||||
def weak_promotion(request): # -> Generator[Unknown, Any, None]:
|
||||
"""
|
||||
Fixture to ensure "legacy" promotion state or change it to use the new
|
||||
weak promotion (plus warning). `old_promotion` should be used as a
|
||||
parameter in the function.
|
||||
"""
|
||||
...
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue