e988f3320b269577eb83371a60aca3db4b1c92b7,mahotas/tests/test_internal.py,,test_get_output_explicit_dtype,#,35
Before Change
def test_get_output_explicit_dtype():
f = np.arange(256).reshape((32,8))
output = np.zeros_like(f)
_get_output(f, output, "testing", bool)
def test_get_axis_good():
f = np.zeros((3,4,5,3,2,2,5,3,2,4,1))
After Change
def test_get_output_explicit_dtype():
f = np.arange(256).reshape((32,8))
output = np.zeros_like(f)
with pytest.raises(ValueError):
_get_output(f, output, "testing", bool)
def test_get_axis_good():
f = np.zeros((3,4,5,3,2,2,5,3,2,4,1))
for i in range(len(f.shape)):
assert i == _get_axis(f, i, "test")
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: luispedro/mahotas
Commit Name: e988f3320b269577eb83371a60aca3db4b1c92b7
Time: 2020-08-13
Author: luis@luispedro.org
File Name: mahotas/tests/test_internal.py
Class Name:
Method Name: test_get_output_explicit_dtype
Project Name: luispedro/mahotas
Commit Name: e988f3320b269577eb83371a60aca3db4b1c92b7
Time: 2020-08-13
Author: luis@luispedro.org
File Name: mahotas/tests/test_internal.py
Class Name:
Method Name: test_get_output_bad_shape
Project Name: luispedro/mahotas
Commit Name: e988f3320b269577eb83371a60aca3db4b1c92b7
Time: 2020-08-13
Author: luis@luispedro.org
File Name: mahotas/tests/test_internal.py
Class Name:
Method Name: test_get_output_non_contiguous