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/f2py/tests | |
| 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/f2py/tests')
| -rw-r--r-- | numpy/f2py/tests/test_assumed_shape.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/f2py/tests/test_assumed_shape.py b/numpy/f2py/tests/test_assumed_shape.py index e546c379b..4da79ec02 100644 --- a/numpy/f2py/tests/test_assumed_shape.py +++ b/numpy/f2py/tests/test_assumed_shape.py @@ -30,7 +30,7 @@ class TestAssumedShapeSumExample(util.F2PyTest): class TestF2cmapOption(TestAssumedShapeSumExample): - def setup(self): + def setup_method(self): # Use a custom file name for .f2py_f2cmap self.sources = list(self.sources) f2cmap_src = self.sources.pop(-1) @@ -45,5 +45,5 @@ class TestF2cmapOption(TestAssumedShapeSumExample): super().setup() - def teardown(self): + def teardown_method(self): os.unlink(self.f2cmap_file.name) |
