summaryrefslogtreecommitdiff
path: root/numpy/distutils/tests
diff options
context:
space:
mode:
authorSebastian Berg <sebastianb@nvidia.com>2022-10-27 15:34:03 +0200
committerSebastian Berg <sebastianb@nvidia.com>2022-10-27 15:34:03 +0200
commit2f647b4d22e7c096ab7f0a8afee1b63cde241797 (patch)
tree91a92c76772b902238618a9814c16f40bf489a19 /numpy/distutils/tests
parent67841947b458f6bdc6c40d014512da9bc4717a3e (diff)
downloadnumpy-2f647b4d22e7c096ab7f0a8afee1b63cde241797.tar.gz
TST: Try using setup_class for `_Test_CCompilerOpt`
Diffstat (limited to 'numpy/distutils/tests')
-rw-r--r--numpy/distutils/tests/test_ccompiler_opt.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/distutils/tests/test_ccompiler_opt.py b/numpy/distutils/tests/test_ccompiler_opt.py
index 1ca8bc09b..657ebdb68 100644
--- a/numpy/distutils/tests/test_ccompiler_opt.py
+++ b/numpy/distutils/tests/test_ccompiler_opt.py
@@ -78,7 +78,7 @@ class _Test_CCompilerOpt:
arch = None # x86_64
cc = None # gcc
- def setup(self):
+ def setup_class(self):
FakeCCompilerOpt.conf_nocache = True
self._opt = None
@@ -780,7 +780,7 @@ def new_test(arch, cc):
cc = '{cc}'
def __init__(self, methodName="runTest"):
unittest.TestCase.__init__(self, methodName)
- self.setup()
+ self.setup_class()
""").format(
class_name=arch + '_' + cc, arch=arch, cc=cc
)