diff options
author | Sebastian Berg <sebastianb@nvidia.com> | 2022-10-27 15:34:03 +0200 |
---|---|---|
committer | Sebastian Berg <sebastianb@nvidia.com> | 2022-10-27 15:34:03 +0200 |
commit | 2f647b4d22e7c096ab7f0a8afee1b63cde241797 (patch) | |
tree | 91a92c76772b902238618a9814c16f40bf489a19 /numpy/distutils/tests | |
parent | 67841947b458f6bdc6c40d014512da9bc4717a3e (diff) | |
download | numpy-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.py | 4 |
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 ) |