diff options
author | Sebastian Berg <sebastianb@nvidia.com> | 2022-10-27 22:05:07 +0200 |
---|---|---|
committer | Sebastian Berg <sebastianb@nvidia.com> | 2022-10-27 22:05:07 +0200 |
commit | 5292238c026780d7f31a951ab76ab9cbc1506780 (patch) | |
tree | 537726f595846e0f0045e5c1932d3e68b8bae9f2 /numpy | |
parent | 3e522a768852575d08e859f8432b4054957dd9b9 (diff) | |
download | numpy-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.py | 1 | ||||
-rw-r--r-- | numpy/lib/tests/test_io.py | 1 | ||||
-rw-r--r-- | numpy/ma/tests/test_old_ma.py | 5 |
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)) |