class documentation

class TestDivisionIntegerOverflowsAndDivideByZero: (source)

View In Hierarchy

Undocumented

Method test_divide_by_zero Undocumented
Method test_overflows Undocumented
Method test_signed_division_overflow Undocumented
Class Variable helper_lambdas Undocumented
Class Variable overflow_results Undocumented
Class Variable result_type Undocumented
@pytest.mark.skipif(IS_WASM, reason='fp errors don\'t work in wasm')
@pytest.mark.parametrize('dtype', np.typecodes['AllInteger'])
def test_divide_by_zero(self, dtype): (source)

Undocumented

@pytest.mark.skipif(IS_WASM, reason='fp errors don\'t work in wasm')
@pytest.mark.parametrize('dividend_dtype', np.sctypes['int'])
@pytest.mark.parametrize('divisor_dtype', np.sctypes['int'])
@pytest.mark.parametrize('operation', [np.remainder, np.fmod, np.divmod, np.floor_divide, operator.mod, operator.floordiv])
@np.errstate(divide='warn', over='warn')
def test_overflows(self, dividend_dtype, divisor_dtype, operation): (source)

Undocumented

@pytest.mark.skipif(IS_WASM, reason='fp errors don\'t work in wasm')
@pytest.mark.parametrize('dtype', np.typecodes['Integer'])
def test_signed_division_overflow(self, dtype): (source)

Undocumented

helper_lambdas = (source)

Undocumented

overflow_results = (source)

Undocumented

result_type = (source)

Undocumented