[pypy-commit] pypy default: add failing test that corrupts memory
mattip
noreply at buildbot.pypy.org
Mon Feb 11 19:53:29 CET 2013
Author: mattip <matti.picus at gmail.com>
Branch:
Changeset: r61097:77172e93542b
Date: 2013-02-11 17:54 +0200
http://bitbucket.org/pypy/pypy/changeset/77172e93542b/
Log: add failing test that corrupts memory
diff --git a/pypy/module/micronumpy/test/test_numarray.py b/pypy/module/micronumpy/test/test_numarray.py
--- a/pypy/module/micronumpy/test/test_numarray.py
+++ b/pypy/module/micronumpy/test/test_numarray.py
@@ -49,6 +49,9 @@
a = create_array([10, 5, 3], MockDtype(), order='C')
assert a.strides == [15, 3, 1]
assert a.backstrides == [135, 12, 2]
+ a = create_array([1, 0, 7], MockDtype(), order='C')
+ assert a.strides == [7, 7, 1]
+ assert a.backstrides == [-7, -7, 6]
def test_create_slice_f(self):
a = create_array([10, 5, 3], MockDtype(), order='F')
More information about the pypy-commit
mailing list