mirror of
https://github.com/wassname/scikit-image.git
synced 2026-08-11 05:52:22 +08:00
Merge pull request #787 from cgohlke/patch-2
TST: Fix RuntimeError: data type not supported on Python 2.6
This commit is contained in:
@@ -31,7 +31,8 @@ def test_all_props():
|
||||
def test_dtype():
|
||||
regionprops(np.zeros((10, 10), dtype=np.int))
|
||||
regionprops(np.zeros((10, 10), dtype=np.uint))
|
||||
assert_raises(TypeError, regionprops, np.zeros((10, 10), dtype=np.double))
|
||||
assert_raises((TypeError, RuntimeError), regionprops,
|
||||
np.zeros((10, 10), dtype=np.double))
|
||||
|
||||
|
||||
def test_ndim():
|
||||
|
||||
Reference in New Issue
Block a user