Skip to content

Commit 3430c11

Browse files
committed
autopep
1 parent d4b7994 commit 3430c11

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

numpy/_core/tests/test_numeric.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1712,7 +1712,7 @@ def test_sparse(self):
17121712

17131713
@pytest.mark.parametrize('dtype', [np.float32, np.float64])
17141714
def test_nonzero_float_dtypes(self, dtype):
1715-
rng = np.random.default_rng(seed = 10)
1715+
rng = np.random.default_rng(seed=10)
17161716
x = ((2**33)*rng.normal(size=100)).astype(dtype)
17171717
x[rng.choice(50, size=100)] = 0
17181718
idxs = np.nonzero(x)[0]
@@ -1721,13 +1721,12 @@ def test_nonzero_float_dtypes(self, dtype):
17211721
@pytest.mark.parametrize('dtype', [bool, np.int8, np.int16, np.int32, np.int64,
17221722
np.uint8, np.uint16, np.uint32, np.uint64])
17231723
def test_nonzero_integer_dtypes(self, dtype):
1724-
rng = np.random.default_rng(seed = 10)
1724+
rng = np.random.default_rng(seed=10)
17251725
x = rng.integers(0, 255, size=100).astype(dtype)
17261726
x[rng.choice(50, size=100)] = 0
17271727
idxs = np.nonzero(x)[0]
17281728
assert_equal(np.array_equal(np.where(x != 0)[0], idxs), True)
17291729

1730-
17311730
def test_return_type(self):
17321731
class C(np.ndarray):
17331732
pass

0 commit comments

Comments
 (0)