Added test for checking ValueError

This commit is contained in:
Chintak Sheth
2013-05-25 19:10:50 +05:30
parent ab2a82746f
commit 8bc70cd2ea
+3 -1
View File
@@ -1,5 +1,5 @@
import numpy as np
from numpy.testing import assert_array_equal
from numpy.testing import assert_array_equal, assert_raises
from numpy.testing.decorators import skipif
from skimage.morphology import convex_hull_image, convex_hull_object
from skimage.morphology._convex_hull import possible_hull
@@ -105,5 +105,7 @@ def test_object():
assert_array_equal(convex_hull_object(image, 8), expected8)
assert_raises(ValueError, convex_hull_object, image, 7)
if __name__ == "__main__":
np.testing.run_module_suite()