diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2011-04-23 17:04:55 -0600 |
---|---|---|
committer | Charles Harris <charlesr.harris@gmail.com> | 2011-04-23 17:04:55 -0600 |
commit | c518d07e83a2c4889e5520b045b29089daebd11a (patch) | |
tree | bfe02553437e0b2db565b17c181c3ddc109ce227 /numpy | |
parent | a2e81731463448d87fb8c4282595a386532f3aee (diff) | |
download | numpy-c518d07e83a2c4889e5520b045b29089daebd11a.tar.gz |
TST: Try to make the test for checking array size from dimensions a
bit more successful.
Diffstat (limited to 'numpy')
-rw-r--r-- | numpy/core/tests/test_regression.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/numpy/core/tests/test_regression.py b/numpy/core/tests/test_regression.py index 281342bbf..9880bfbb3 100644 --- a/numpy/core/tests/test_regression.py +++ b/numpy/core/tests/test_regression.py @@ -1152,7 +1152,8 @@ class TestRegression(TestCase): def test_array_too_big(self): """Ticket #1080.""" - assert_raises(ValueError, np.zeros, [2**10]*10, np.int8) + assert_raises(ValueError, np.zeros, [1023]*10, np.int8) + assert_raises(ValueError, np.zeros, [26244]*5, np.int8) assert_raises(MemoryError, np.zeros, [2**30]*2, np.int8) def test_dtype_keyerrors_(self): |