From 016afc58740cf8a766595b68191b7eb9f7435776 Mon Sep 17 00:00:00 2001 From: Charles Harris Date: Sat, 14 Mar 2009 20:16:12 +0000 Subject: Give assert_ a default message of ''. --- numpy/testing/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'numpy') diff --git a/numpy/testing/utils.py b/numpy/testing/utils.py index d0bfd11db..4489881eb 100644 --- a/numpy/testing/utils.py +++ b/numpy/testing/utils.py @@ -17,7 +17,7 @@ __all__ = ['assert_equal', 'assert_almost_equal','assert_approx_equal', verbose = 0 -def assert_(val, msg) : +def assert_(val, msg='') : """Assert that works in release mode.""" if not val : raise AssertionError(msg) -- cgit v1.2.1