module documentation

This file adds basic tests to test the NEP 50 style promotion compatibility mode. Most of these test are likely to be simply deleted again once NEP 50 is adopted in the main test suite. A few may be moved elsewhere.

Function test_nep50_complex_promotion Undocumented
Function test_nep50_examples Undocumented
Function test_nep50_integer_conversion_errors Undocumented
Function test_nep50_integer_regression Undocumented
Function test_nep50_weak_integers Undocumented
Function test_nep50_weak_integers_with_inexact Undocumented
Function test_weak_promotion_scalar_path Undocumented
Function _weak_promotion_enabled Undocumented
def test_nep50_complex_promotion(): (source)

Undocumented

@pytest.mark.skipif(IS_WASM, reason='wasm doesn\'t have support for fp errors')
def test_nep50_examples(): (source)

Undocumented

def test_nep50_integer_conversion_errors(): (source)

Undocumented

def test_nep50_integer_regression(): (source)

Undocumented

@pytest.mark.parametrize('dtype', np.typecodes['AllInteger'])
def test_nep50_weak_integers(dtype): (source)

Undocumented

@pytest.mark.parametrize('dtype', np.typecodes['AllFloat'])
def test_nep50_weak_integers_with_inexact(dtype): (source)

Undocumented

@pytest.mark.parametrize('op', [operator.add, operator.pow, operator.eq])
def test_weak_promotion_scalar_path(op): (source)

Undocumented

@pytest.fixture(scope='module', autouse=True)
def _weak_promotion_enabled(): (source)

Undocumented