diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2009-03-14 20:16:12 +0000 |
---|---|---|
committer | Charles Harris <charlesr.harris@gmail.com> | 2009-03-14 20:16:12 +0000 |
commit | 016afc58740cf8a766595b68191b7eb9f7435776 (patch) | |
tree | 0e3f3134aed058a810e1f8e2fb3e767e2ec3eb29 /numpy/testing/utils.py | |
parent | 5f9892390e1beb9263448086ad968a7205ef258a (diff) | |
download | numpy-016afc58740cf8a766595b68191b7eb9f7435776.tar.gz |
Give assert_ a default message of ''.
Diffstat (limited to 'numpy/testing/utils.py')
-rw-r--r-- | numpy/testing/utils.py | 2 |
1 files changed, 1 insertions, 1 deletions
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) |