summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAitik Gupta <aitikgupta@gmail.com>2021-01-19 19:05:14 +0530
committermattip <matti.picus@gmail.com>2021-03-18 20:48:23 +0200
commit89de3d9d21e38e4070681e455d98575df3f3b51f (patch)
treeda1090f1624a0214a8cc8c9279ea98e18bf7ac85
parentedfd440a38d4f57000e1ca8d98d9f0033e6bd389 (diff)
downloadnumpy-89de3d9d21e38e4070681e455d98575df3f3b51f.tar.gz
A few whitespace cleanups
-rw-r--r--numpy/core/tests/test_numeric.py11
1 files changed, 6 insertions, 5 deletions
diff --git a/numpy/core/tests/test_numeric.py b/numpy/core/tests/test_numeric.py
index 20c0462ec..aba90ece5 100644
--- a/numpy/core/tests/test_numeric.py
+++ b/numpy/core/tests/test_numeric.py
@@ -296,6 +296,7 @@ class TestNonarrayArgs:
B[0] = 1j
assert_almost_equal(np.var(B), 0.25)
+
class TestIsscalar:
def test_isscalar(self):
assert_(np.isscalar(3.1))
@@ -2362,8 +2363,8 @@ class TestClip:
base_shape=shape,
# Commenting out the min_dims line allows zero-dimensional arrays,
# and zero-dimensional arrays containing NaN make the test fail.
- min_dims=1
-
+ min_dims=1
+
)
)
amin = data.draw(
@@ -2896,10 +2897,10 @@ class TestCorrelate:
self.x = np.array([1, 2, 3, 4, 5], dtype=dt)
self.xs = np.arange(1, 20)[::3]
self.y = np.array([-1, -2, -3], dtype=dt)
- self.z1 = np.array([ -3., -8., -14., -20., -26., -14., -5.], dtype=dt)
+ self.z1 = np.array([-3., -8., -14., -20., -26., -14., -5.], dtype=dt)
self.z1_4 = np.array([-2., -5., -8., -11., -14., -5.], dtype=dt)
- self.z1r = np.array([-15., -22., -22., -16., -10., -4., -1.], dtype=dt)
- self.z2 = np.array([-5., -14., -26., -20., -14., -8., -3.], dtype=dt)
+ self.z1r = np.array([-15., -22., -22., -16., -10., -4., -1.], dtype=dt)
+ self.z2 = np.array([-5., -14., -26., -20., -14., -8., -3.], dtype=dt)
self.z2r = np.array([-1., -4., -10., -16., -22., -22., -15.], dtype=dt)
self.zs = np.array([-3., -14., -30., -48., -66., -84.,
-102., -54., -19.], dtype=dt)