diff options
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 8374999ff..64cc30478 100644 --- a/numpy/testing/utils.py +++ b/numpy/testing/utils.py @@ -311,7 +311,7 @@ def raises(*exceptions): # Anything else. raise else: - raise AssertionError('%s() did not raise one of (%s)' % + raise AssertionError('%s() did not raise one of (%s)' % (function.__name__, ', '.join([e.__name__ for e in exceptions]))) try: f2.__name__ = function.__name__ |