module documentation

Pytest configuration and fixtures for the Numpy test suite.
Function add​_np Undocumented
Function check​_fpu​_mode Check FPU precision mode was not changed during the test.
Function env​_setup Undocumented
Function pytest​_addoption Undocumented
Function pytest​_configure Undocumented
Function pytest​_itemcollected Check FPU precision mode was not changed during test collection.
Function pytest​_sessionstart Undocumented
Variable ​_collect​_results Undocumented
Variable ​_old​_fpu​_mode Undocumented
Variable ​_pytest​_ini Undocumented
@pytest.fixture(autouse=True)
def add_np(doctest_namespace):

Undocumented

@pytest.fixture(scope='function', autouse=True)
def check_fpu_mode(request):
Check FPU precision mode was not changed during the test.
@pytest.fixture(autouse=True)
def env_setup(monkeypatch):

Undocumented

def pytest_addoption(parser):

Undocumented

def pytest_configure(config):

Undocumented

@pytest.hookimpl()
def pytest_itemcollected(item):

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.

def pytest_sessionstart(session):

Undocumented

_collect_results: dict =

Undocumented

_old_fpu_mode =

Undocumented

_pytest_ini =

Undocumented