summaryrefslogtreecommitdiff
path: root/numpy/lib/tests/test_utils.py
diff options
context:
space:
mode:
authorWarren Weckesser <warren.weckesser@gmail.com>2016-09-17 18:22:37 -0400
committerWarren Weckesser <warren.weckesser@gmail.com>2016-09-17 18:25:09 -0400
commitf28957d2a9411958a6952687be9c4dcd1be2a23a (patch)
tree6ce535d9d2a34737054af6a2cbb8e160a7c512b1 /numpy/lib/tests/test_utils.py
parentc90d7c94fd2077d0beca48fa89a423da2b0bb663 (diff)
downloadnumpy-f28957d2a9411958a6952687be9c4dcd1be2a23a.tar.gz
BUG: lib: Simplify (and fix) pad's handling of the pad_width
Simplify the expansion of the pad_width argument by using `broadcast_to()`. This fixes the problem reported in gh-7808, where, for example, `pad_width=((1, 2),)` resulted in an error. Closes gh-7808.
Diffstat (limited to 'numpy/lib/tests/test_utils.py')
0 files changed, 0 insertions, 0 deletions