summaryrefslogtreecommitdiff
path: root/numpy
diff options
context:
space:
mode:
authorkaran-dhir <kurrandhir@gmail.com>2020-08-21 19:29:32 +0530
committerkaran-dhir <kurrandhir@gmail.com>2020-08-21 19:29:32 +0530
commit0b2f5ed3fdf04874e23b19d03fa2938af146c203 (patch)
tree27741a263669f37b499df50d6b5dcb1b40e8304d /numpy
parent4cba2d91e1546872d29af6b25ad35947f27e03ac (diff)
downloadnumpy-0b2f5ed3fdf04874e23b19d03fa2938af146c203.tar.gz
MAINT: changed ValueError line 103 in file timer_comparison
Diffstat (limited to 'numpy')
-rw-r--r--numpy/ma/timer_comparison.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/ma/timer_comparison.py b/numpy/ma/timer_comparison.py
index 83bd7852e..f5855efcf 100644
--- a/numpy/ma/timer_comparison.py
+++ b/numpy/ma/timer_comparison.py
@@ -100,9 +100,9 @@ class ModuleTester:
header=header,
names=('x', 'y'))
assert cond, msg
- except ValueError:
+ except ValueError as e:
msg = build_err_msg([x, y], err_msg, header=header, names=('x', 'y'))
- raise ValueError(msg)
+ raise ValueError(msg) from e
def assert_array_equal(self, x, y, err_msg=''):
"""