Repository navigation
Commit 3d778c2
committed
Work around Numpy formatting glitch in doctest
A Numpy string formatting bug causes this doctest to fail on
certain 32-bit platforms (e.g. armhf). The bug is evident in the
following example:
>>> np.arange(8)
array([0, 1, 2, 3, 4, 5, 6, 7])
>>> 1 << np.arange(8)
array([ 1, 2, 4, 8, 16, 32, 64, 128], dtype=int32)
The `dtype=int32` should be supressed in both cases, but it is not.
This might get fixed upstream in Numpy 1.17. See numpy/numpy#9799,
numpy/numpy#10151.1 parent d31d53d commit 3d778c2
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1139 | 1139 | | |
1140 | 1140 | | |
1141 | 1141 | | |
1142 | | - | |
1143 | | - | |
| 1142 | + | |
| 1143 | + | |
1144 | 1144 | | |
1145 | 1145 | | |
1146 | 1146 | | |
| |||
0 commit comments