summaryrefslogtreecommitdiff
path: root/numpy/testing/utils.py
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2011-02-01 09:00:09 -0700
committerCharles Harris <charlesr.harris@gmail.com>2011-02-01 09:00:09 -0700
commit670d081cbe2bdb4e51e892bd3b696d50969d40d7 (patch)
tree28bb7de54097a49f320eae8074b2fdcfaca4e6e6 /numpy/testing/utils.py
parent4faf10e9246a77bc19c77dc80363d809f5a85396 (diff)
downloadnumpy-670d081cbe2bdb4e51e892bd3b696d50969d40d7.tar.gz
BUG: Fix exception syntax to conform to python 2.4.
Diffstat (limited to 'numpy/testing/utils.py')
-rw-r--r--numpy/testing/utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/testing/utils.py b/numpy/testing/utils.py
index 1a03f98ea..e4ef9d3cb 100644
--- a/numpy/testing/utils.py
+++ b/numpy/testing/utils.py
@@ -616,7 +616,7 @@ def assert_array_compare(comparison, x, y, err_msg='', verbose=True,
names=('x', 'y'))
if not cond :
raise AssertionError(msg)
- except ValueError as e:
+ except ValueError, e:
header = 'error during assertion:\n%s\n\n%s' % (e, header)
msg = build_err_msg([x, y], err_msg, verbose=verbose, header=header,
names=('x', 'y'))