summaryrefslogtreecommitdiff
path: root/numpy/lib/tests/test_shape_base.py
diff options
context:
space:
mode:
authorJaime <jaime.frio@gmail.com>2015-07-16 23:11:12 -0700
committerJaime <jaime.frio@gmail.com>2015-07-16 23:11:12 -0700
commita419ebb9a19be74c7ec7887eff81cf7ea0636e16 (patch)
tree0242110ccdbb76fe3b97351ba570d165ae6d0b8d /numpy/lib/tests/test_shape_base.py
parent85188530bffae563eb274b9c12b77981cfa4e1d2 (diff)
parent98f186f4ea336138c31c471d18dccc6d9663ced7 (diff)
downloadnumpy-a419ebb9a19be74c7ec7887eff81cf7ea0636e16.tar.gz
Merge pull request #6090 from dimasad/issue-6089-fix
BUG: Fix tiling of zero-sized arrays numpy/numpy#6089
Diffstat (limited to 'numpy/lib/tests/test_shape_base.py')
-rw-r--r--numpy/lib/tests/test_shape_base.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/numpy/lib/tests/test_shape_base.py b/numpy/lib/tests/test_shape_base.py
index fb9d7f364..3f2d8d5b4 100644
--- a/numpy/lib/tests/test_shape_base.py
+++ b/numpy/lib/tests/test_shape_base.py
@@ -332,7 +332,10 @@ class TestTile(TestCase):
def test_empty(self):
a = np.array([[[]]])
+ b = np.array([[], []])
+ c = tile(b, 2).shape
d = tile(a, (3, 2, 5)).shape
+ assert_equal(c, (2, 0))
assert_equal(d, (3, 2, 0))
def test_kroncompare(self):