summaryrefslogtreecommitdiff
path: root/numpy
diff options
context:
space:
mode:
authormdroe <mdroe@localhost>2010-02-22 19:36:24 +0000
committermdroe <mdroe@localhost>2010-02-22 19:36:24 +0000
commit755e6ebabdda26f8720d5881897d31379fe81586 (patch)
tree9023dd1ea38d7c3bee45bbb0a88f14dfcdb2e666 /numpy
parenta2dc78f54f65fa67d6d02e9fcc563752efd67509 (diff)
downloadnumpy-755e6ebabdda26f8720d5881897d31379fe81586.tar.gz
Add regression test for ticket #1405
Diffstat (limited to 'numpy')
-rw-r--r--numpy/core/tests/test_regression.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/numpy/core/tests/test_regression.py b/numpy/core/tests/test_regression.py
index 41b9ed470..5111ab8aa 100644
--- a/numpy/core/tests/test_regression.py
+++ b/numpy/core/tests/test_regression.py
@@ -1265,5 +1265,11 @@ class TestRegression(TestCase):
x = np.array([1,2,3], dtype=np.dtype('<i4'))
assert_equal(md5(x).hexdigest(), '2a1dd1e1e59d0a384c26951e316cd7e6')
+ def test_numeric_handleError(self):
+ """Ticket #1405"""
+ from numpy import numarray
+ # Just make sure this doesn't throw an exception
+ numarray.handleError(0, "")
+
if __name__ == "__main__":
run_module_suite()