diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2010-04-25 01:29:19 +0000 |
---|---|---|
committer | Charles Harris <charlesr.harris@gmail.com> | 2010-04-25 01:29:19 +0000 |
commit | c655f8dacceba151dde8d13006751cd6b8d149ac (patch) | |
tree | d1772d02e8f758f99ed2b778fcc10a8a9620ef7e /numpy | |
parent | 26d51fb2bf1ae6bb0f2c5f164647ee4a572b8d10 (diff) | |
download | numpy-c655f8dacceba151dde8d13006751cd6b8d149ac.tar.gz |
ENH: Apply old patch hanging around in my directory. I don't recall where it
came from, but it seems appropriate.
Diffstat (limited to 'numpy')
-rw-r--r-- | numpy/core/tests/test_regression.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/numpy/core/tests/test_regression.py b/numpy/core/tests/test_regression.py index cd0d05a26..251713cfc 100644 --- a/numpy/core/tests/test_regression.py +++ b/numpy/core/tests/test_regression.py @@ -1287,5 +1287,11 @@ class TestRegression(TestCase): # Check if log1p is behaving on 32 bit intel systems. assert_(np.isfinite(np.log1p(np.exp2(-53)))) + def test_fromiter_comparison(self, level=rlevel): + a = np.fromiter(range(10), dtype='b') + b = np.fromiter(range(10), dtype='B') + assert np.alltrue(a == np.array([0,1,2,3,4,5,6,7,8,9])) + assert np.alltrue(b == np.array([0,1,2,3,4,5,6,7,8,9])) + if __name__ == "__main__": run_module_suite() |