summaryrefslogtreecommitdiff
path: root/numpy/testing/utils.py
diff options
context:
space:
mode:
authorJulian Taylor <jtaylor.debian@googlemail.com>2013-06-07 19:24:11 +0200
committerJulian Taylor <jtaylor.debian@googlemail.com>2013-06-08 20:44:05 +0200
commit987dc32499e2bcfe160c61a5c5984e05552c7038 (patch)
treeeb07da0a6ab7263e0a154a057ee026aed56096ba /numpy/testing/utils.py
parent9d5884b0acf935401f0f8e64912b98abc73f62c3 (diff)
downloadnumpy-987dc32499e2bcfe160c61a5c5984e05552c7038.tar.gz
MAINT: fix shape mismatch issue in alignment data generator
Diffstat (limited to 'numpy/testing/utils.py')
-rw-r--r--numpy/testing/utils.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/numpy/testing/utils.py b/numpy/testing/utils.py
index 7a3ea7a1c..2d8d57c5f 100644
--- a/numpy/testing/utils.py
+++ b/numpy/testing/utils.py
@@ -1580,13 +1580,13 @@ def gen_alignment_data(dtype=float32, type='binary', max_size=24):
(o, o, o, s, dtype, 'in place2')
yield out[1:], inp1()[:-1], inp2()[:-1], bfmt % \
(o + 1, o, o, s - 1, dtype, 'out of place')
- yield out[-1:], inp1()[1:], inp2()[:-1], bfmt % \
+ yield out[:-1], inp1()[1:], inp2()[:-1], bfmt % \
(o, o + 1, o, s - 1, dtype, 'out of place')
- yield out[-1:], inp1()[:-1], inp2()[1:], bfmt % \
+ yield out[:-1], inp1()[:-1], inp2()[1:], bfmt % \
(o, o, o + 1, s - 1, dtype, 'out of place')
yield inp1()[1:], inp1()[:-1], inp2()[:-1], bfmt % \
(o + 1, o, o, s - 1, dtype, 'aliased')
- yield inp1()[-1:], inp1()[1:], inp2()[:-1], bfmt % \
+ yield inp1()[:-1], inp1()[1:], inp2()[:-1], bfmt % \
(o, o + 1, o, s - 1, dtype, 'aliased')
- yield inp1()[-1:], inp1()[:-1], inp2()[1:], bfmt % \
+ yield inp1()[:-1], inp1()[:-1], inp2()[1:], bfmt % \
(o, o, o + 1, s - 1, dtype, 'aliased')