summaryrefslogtreecommitdiff
path: root/numpy/distutils/tests/test_system_info.py
diff options
context:
space:
mode:
authorSebastian Berg <sebastianb@nvidia.com>2022-10-27 14:57:14 +0200
committerSebastian Berg <sebastianb@nvidia.com>2022-10-27 14:57:14 +0200
commit67841947b458f6bdc6c40d014512da9bc4717a3e (patch)
tree9683bb0863ef40219e3de2fb37013cef209a7edb /numpy/distutils/tests/test_system_info.py
parent2283052fd01138863a5741d84f358fdbea501bd9 (diff)
downloadnumpy-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/distutils/tests/test_system_info.py')
-rw-r--r--numpy/distutils/tests/test_system_info.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/distutils/tests/test_system_info.py b/numpy/distutils/tests/test_system_info.py
index 8c26271af..539badf07 100644
--- a/numpy/distutils/tests/test_system_info.py
+++ b/numpy/distutils/tests/test_system_info.py
@@ -130,7 +130,7 @@ class DuplicateOptionInfo(_system_info):
class TestSystemInfoReading:
- def setup(self):
+ def setup_method(self):
""" Create the libraries """
# Create 2 sources and 2 libraries
self._dir1 = mkdtemp()
@@ -172,7 +172,7 @@ class TestSystemInfoReading:
self._sitecfg)
- def teardown(self):
+ def teardown_method(self):
# Do each removal separately
try:
shutil.rmtree(self._dir1)