@@ -1844,7 +1844,7 @@ def test_fpclass(self, stride):
1844
1844
assert_equal (np .isnan (arr_f64 [::stride ]), nan [::stride ])
1845
1845
assert_equal (np .isinf (arr_f32 [::stride ]), inf [::stride ])
1846
1846
assert_equal (np .isinf (arr_f64 [::stride ]), inf [::stride ])
1847
- if platform .processor () == 'riscv64' :
1847
+ if platform .machine () == 'riscv64' :
1848
1848
# On RISC-V, many operations that produce NaNs, such as converting
1849
1849
# a -NaN from f64 to f32, return a canonical NaN. The canonical
1850
1850
# NaNs are always positive. See section 11.3 NaN Generation and
@@ -1881,7 +1881,7 @@ def test_fp_noncontiguous(self, dtype):
1881
1881
ncontig_out = out [1 ::3 ]
1882
1882
contig_in = np .array (ncontig_in )
1883
1883
1884
- if platform .processor () == 'riscv64' :
1884
+ if platform .machine () == 'riscv64' :
1885
1885
# Disable the -np.nan signbit tests on riscv64. See comments in
1886
1886
# test_fpclass for more details.
1887
1887
data_rv = np .copy (data )
@@ -1920,7 +1920,7 @@ def test_fp_noncontiguous(self, dtype):
1920
1920
finite_split = np .array (np .array_split (finite , 2 ))
1921
1921
assert_equal (np .isnan (data_split ), nan_split )
1922
1922
assert_equal (np .isinf (data_split ), inf_split )
1923
- if platform .processor () == 'riscv64' :
1923
+ if platform .machine () == 'riscv64' :
1924
1924
data_split_rv = np .array (np .array_split (data_rv , 2 ))
1925
1925
assert_equal (np .signbit (data_split_rv ), sign_split )
1926
1926
else :
0 commit comments