summaryrefslogtreecommitdiff
path: root/numpy
diff options
context:
space:
mode:
authorSebastian Berg <sebastianb@nvidia.com>2022-10-27 22:05:07 +0200
committerSebastian Berg <sebastianb@nvidia.com>2022-10-27 22:05:07 +0200
commit5292238c026780d7f31a951ab76ab9cbc1506780 (patch)
tree537726f595846e0f0045e5c1932d3e68b8bae9f2 /numpy
parent3e522a768852575d08e859f8432b4054957dd9b9 (diff)
downloadnumpy-5292238c026780d7f31a951ab76ab9cbc1506780.tar.gz
STY: Make linter happy
Not new things, but in touched lines...
Diffstat (limited to 'numpy')
-rw-r--r--numpy/distutils/tests/test_system_info.py1
-rw-r--r--numpy/lib/tests/test_io.py1
-rw-r--r--numpy/ma/tests/test_old_ma.py5
3 files changed, 3 insertions, 4 deletions
diff --git a/numpy/distutils/tests/test_system_info.py b/numpy/distutils/tests/test_system_info.py
index 539badf07..eb7235e04 100644
--- a/numpy/distutils/tests/test_system_info.py
+++ b/numpy/distutils/tests/test_system_info.py
@@ -171,7 +171,6 @@ class TestSystemInfoReading:
self.c_dup_options = site_and_parse(get_class('duplicate_options'),
self._sitecfg)
-
def teardown_method(self):
# Do each removal separately
try:
diff --git a/numpy/lib/tests/test_io.py b/numpy/lib/tests/test_io.py
index 87f476328..a5462749f 100644
--- a/numpy/lib/tests/test_io.py
+++ b/numpy/lib/tests/test_io.py
@@ -689,6 +689,7 @@ class TestLoadTxt(LoadTxtBase):
# lower chunksize for testing
self.orig_chunk = np.lib.npyio._loadtxt_chunksize
np.lib.npyio._loadtxt_chunksize = 1
+
def teardown_method(self):
np.lib.npyio._loadtxt_chunksize = self.orig_chunk
diff --git a/numpy/ma/tests/test_old_ma.py b/numpy/ma/tests/test_old_ma.py
index 083e51125..8465b1153 100644
--- a/numpy/ma/tests/test_old_ma.py
+++ b/numpy/ma/tests/test_old_ma.py
@@ -78,9 +78,8 @@ class TestMa:
assert_(isMaskedArray(xm))
assert_equal(shape(xm), s)
assert_equal(xm.shape, s)
- assert_equal(xm.size, reduce(lambda x, y:x * y, s))
- assert_equal(count(xm),
- len(m1) - reduce(lambda x, y:x + y, m1))
+ assert_equal(xm.size, reduce(lambda x, y: x * y, s))
+ assert_equal(count(xm), len(m1) - reduce(lambda x, y: x + y, m1))
assert_(eq(xm, xf))
assert_(eq(filled(xm, 1.e20), xf))
assert_(eq(x, xm))