diff options
author | Sebastian Berg <sebastianb@nvidia.com> | 2022-10-27 14:57:14 +0200 |
---|---|---|
committer | Sebastian Berg <sebastianb@nvidia.com> | 2022-10-27 14:57:14 +0200 |
commit | 67841947b458f6bdc6c40d014512da9bc4717a3e (patch) | |
tree | 9683bb0863ef40219e3de2fb37013cef209a7edb /numpy/lib/tests/test_io.py | |
parent | 2283052fd01138863a5741d84f358fdbea501bd9 (diff) | |
download | numpy-67841947b458f6bdc6c40d014512da9bc4717a3e.tar.gz |
TST,MAINT: Replace most `setup` with `setup_method` (also teardown)
In some cases, the replacement is clearly not what is intended,
in those (where setup was called explicitly), I mostly renamed
`setup` to `_setup`.
The `test_ccompile_opt` is a bit confusing, so left it right now
(this will probably fail)
Diffstat (limited to 'numpy/lib/tests/test_io.py')
-rw-r--r-- | numpy/lib/tests/test_io.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/lib/tests/test_io.py b/numpy/lib/tests/test_io.py index b39db72eb..87f476328 100644 --- a/numpy/lib/tests/test_io.py +++ b/numpy/lib/tests/test_io.py @@ -685,11 +685,11 @@ class LoadTxtBase: class TestLoadTxt(LoadTxtBase): loadfunc = staticmethod(np.loadtxt) - def setup(self): + def setup_method(self): # lower chunksize for testing self.orig_chunk = np.lib.npyio._loadtxt_chunksize np.lib.npyio._loadtxt_chunksize = 1 - def teardown(self): + def teardown_method(self): np.lib.npyio._loadtxt_chunksize = self.orig_chunk def test_record(self): |