d09670f5486b825834dbf060754a3344ce26e735,skimage/util/tests/test_dtype.py,,,#,116

Before Change


        converted8 = func(img8)
        assert np.sum(converted8) == dtype_range[dt][1]

if __name__ == "__main__":
    np.testing.run_module_suite()

After Change


dtype_range_extra.update({np.int32: (-2147483648, 2147483647),
                          np.uint32: (0, 4294967295)})

dtype_pairs = [(np.uint8, np.uint32),
               (np.int8, np.uint32),
               (np.int8, np.int32),
               (np.int32, np.int8),
               (np.float64, np.float32),
               (np.int32, np.float32)]


@pytest.mark.parametrize("dtype_in, dt", dtype_pairs)
def test_range_extra_dtypes(dtype_in, dt):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 7

Instances


Project Name: scikit-image/scikit-image
Commit Name: d09670f5486b825834dbf060754a3344ce26e735
Time: 2017-05-29
Author: nelzas@gmail.com
File Name: skimage/util/tests/test_dtype.py
Class Name:
Method Name:


Project Name: scikit-image/scikit-image
Commit Name: d0f2bac3ffc6f136f52bc67837d2036e94032061
Time: 2017-05-26
Author: nelzas@gmail.com
File Name: skimage/transform/tests/test_radon_transform.py
Class Name:
Method Name:


Project Name: scikit-image/scikit-image
Commit Name: aa3c0eb61036fb2418b955563bbcd13223b423af
Time: 2017-05-25
Author: nelzas@gmail.com
File Name: skimage/morphology/tests/test_binary.py
Class Name:
Method Name: