From 98f186f4ea336138c31c471d18dccc6d9663ced7 Mon Sep 17 00:00:00 2001 From: Dimas Abreu Dutra Date: Thu, 16 Jul 2015 21:41:23 -0300 Subject: BUG: Fix tiling of zero-sized arrays numpy/numpy#6089 and add test case. --- numpy/lib/tests/test_shape_base.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'numpy/lib/tests/test_shape_base.py') 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): -- cgit v1.2.1