Skip to content

Commit 2f86a4a

Browse files
committed
Merge remote-tracking branch 'upstream/maint/3.1.x'
2 parents b48fb17 + 23de925 commit 2f86a4a

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

.travis.yml

+8-2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
# can't be any leading "-"s - All newlines will be removed, so use ";"s
66

77
os: linux
8+
arch: amd64
89
dist: xenial
910
language: python
1011
cache: pip
@@ -16,16 +17,21 @@ env:
1617
- INSTALL_TYPE="setup"
1718
- CHECK_TYPE="test"
1819
- EXTRA_WHEELS="https://3f23b170c54c2533c070-1c8a9b3114517dc5fe17b7c3f8c63a43.ssl.cf2.rackcdn.com"
19-
- PRE_WHEELS="https://7933911d6844c6c53a7d-47bd50c35cd79bd838daf386af554a83.ssl.cf2.rackcdn.com"
20+
- NIGHTLY_WHEELS="https://pypi.anaconda.org/scipy-wheels-nightly/simple"
2021
- EXTRA_PIP_FLAGS="--find-links=$EXTRA_WHEELS"
21-
- PRE_PIP_FLAGS="--pre $EXTRA_PIP_FLAGS --find-links $PRE_WHEELS"
22+
- PRE_PIP_FLAGS="--pre $EXTRA_PIP_FLAGS --extra-index-url $NIGHTLY_WHEELS"
2223

2324
python:
2425
- 3.7
2526
- 3.8
2627

2728
jobs:
2829
include:
30+
- arch: arm64
31+
python: 3.6
32+
env:
33+
- DEPENDS="numpy"
34+
- EXTRA_PIP_FLAGS="$PRE_PIP_FLAGS"
2935
# Basic dependencies only
3036
- python: 3.6
3137
env:

nibabel/tests/test_volumeutils.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -678,7 +678,7 @@ def test_a2f_nan2zero_range():
678678
with pytest.raises(ValueError):
679679
write_return(arr_no_nan, fobj, np.int8, intercept=129)
680680
# OK with nan2zero false, but we get whatever nan casts to
681-
nan_cast = np.array(np.nan).astype(np.int8)
681+
nan_cast = np.array(np.nan, dtype=dt).astype(np.int8)
682682
back_arr = write_return(arr, fobj, np.int8, intercept=129, nan2zero=False)
683683
assert_array_equal([-128, -128, -128, nan_cast], back_arr)
684684
# divslope

0 commit comments

Comments
 (0)