8000 MAINT: linting · mattip/numpy@1db1ffe · GitHub
[go: up one dir, main page]

Skip to content

Commit 1db1ffe

Browse files
committed
MAINT: linting
1 parent 28706af commit 1db1ffe

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

numpy/core/tests/test_ufunc.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1988,12 +1988,14 @@ def test_ufunc_at_basic(self, a):
19881988
np.add.at(a, [2, 5, 3], [[1, 2], 1])
19891989

19901990
# ufuncs with indexed loops for perfomance in ufunc.at
1991-
indexed_ufuncs = [np.add, np.subtract, np.multiply, np.floor_divide, np.divide]
1991+
indexed_ufuncs = [np.add, np.subtract, np.multiply,
1992+
np.floor_divide, np.divide]
1993+
19921994
@pytest.mark.parametrize(
19931995
"typecode", np.typecodes['AllInteger'] + np.typecodes['Float'])
19941996
@pytest.mark.parametrize("ufunc", indexed_ufuncs)
19951997
def test_ufunc_at_inner_loops(self, typecode, ufunc):
1996-
if ufunc is np.divide and typecode in np.typecodes['AllInteger']:
1998+
if ufunc is np.divide and typecode in np.typecodes['AllInteger']:
19971999
# Avoid divide-by-zero and inf for integer divide
19982000
a = np.ones(100, dtype=typecode)
19992001
indx = np.random.randint(100, size=30, dtype=np.intp)
@@ -2009,7 +2011,7 @@ def test_ufunc_at_inner_loops(self, typecode, ufunc):
20092011
ufunc.at(a, indx, vals)
20102012
with warnings.catch_warnings(record=True) as w_loop:
20112013
warnings.simplefilter('always')
2012-
for i,v in zip(indx, vals):
2014+
for i, v in zip(indx, vals):
20132015
# Make sure all the work happens inside the ufunc
20142016
# in order to duplicate error/warning handling
20152017
ufunc(atag[i], v, out=atag[i:i+1], casting="unsafe")

0 commit comments

Comments
 (0)
0