From 4f74a007d9cd7ee34b2c41a01e450867c23ccfff Mon Sep 17 00:00:00 2001 From: Stefan van der Walt Date: Sat, 12 Oct 2013 19:57:35 +0200 Subject: [PATCH] Test that output argument is correct. --- skimage/morphology/tests/test_binary.py | 1 + 1 file changed, 1 insertion(+) diff --git a/skimage/morphology/tests/test_binary.py b/skimage/morphology/tests/test_binary.py index e1521296..deab3d82 100644 --- a/skimage/morphology/tests/test_binary.py +++ b/skimage/morphology/tests/test_binary.py @@ -62,6 +62,7 @@ def test_out_argument(): out_saved = out.copy() func(img, strel, out=out) testing.assert_(np.any(out != out_saved)) + testing.assert_array_equal(out, func(img, strel)) if __name__ == '__main__': testing.run_module_suite()