adding main to run tests

This commit is contained in:
Adam Wisniewski
2013-06-29 10:17:41 -05:00
committed by Stefan van der Walt
parent 227b209720
commit 81519b7863
2 changed files with 6 additions and 0 deletions
+3
View File
@@ -79,3 +79,6 @@ def test_rescale_intensity():
def test_error_ndim():
arr_error = np.random.randn(1, 2, 3, 4)
montage2d(arr_error)
if __name__ == '__main__':
np.testing.run_module_suite()
+3
View File
@@ -139,3 +139,6 @@ def test_view_as_windows_2D():
[9, 10, 11],
[13, 14, 15],
[17, 18, 19]]]]))
if __name__ == '__main__':
np.testing.run_module_suite()