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
Function weak_promotion 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.
Variable _collect_results Undocumented
Variable _old_fpu_mode Undocumented
Variable _pytest_ini Undocumented
@pytest.fixture(autouse=True)
def add_np(doctest_namespace): (source)

Undocumented

@pytest.fixture(scope='function', autouse=True)
def check_fpu_mode(request): (source)

Check FPU precision mode was not changed during the test.

@pytest.fixture(autouse=True)
def env_setup(monkeypatch): (source)

Undocumented

def pytest_addoption(parser): (source)

Undocumented

def pytest_configure(config): (source)

Undocumented

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

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): (source)

Undocumented

@pytest.fixture(params=[True, False])
def weak_promotion(request): (source)

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.

_collect_results: dict = (source)

Undocumented

_old_fpu_mode = (source)

Undocumented

_pytest_ini = (source)

Undocumented