[pypy-commit] pypy ppc-jit-backend: use setup_method instead of setup_class

hager noreply at buildbot.pypy.org
Fri Mar 2 13:33:00 CET 2012


Author: hager <sven.hager at uni-duesseldorf.de>
Branch: ppc-jit-backend
Changeset: r53107:a3fb941acdca
Date: 2012-03-02 04:32 -0800
http://bitbucket.org/pypy/pypy/changeset/a3fb941acdca/

Log:	use setup_method instead of setup_class

diff --git a/pypy/jit/backend/ppc/test/test_runner.py b/pypy/jit/backend/ppc/test/test_runner.py
--- a/pypy/jit/backend/ppc/test/test_runner.py
+++ b/pypy/jit/backend/ppc/test/test_runner.py
@@ -19,9 +19,9 @@
 
 class TestPPC(LLtypeBackendTest):
    
-    def setup_class(cls):
-        cls.cpu = PPC_64_CPU(rtyper=None, stats=FakeStats())
-        cls.cpu.setup_once()
+    def setup_method(self, meth):
+        self.cpu = PPC_64_CPU(rtyper=None, stats=FakeStats())
+        self.cpu.setup_once()
 
     def test_compile_loop_many_int_args(self):
         for numargs in range(2, 16):


More information about the pypy-commit mailing list