Author: David Schneider <david.schnei...@picle.org>
Branch: arm-backed-float
Changeset: r44650:1ab2965d716a
Date: 2011-06-02 11:57 +0200
http://bitbucket.org/pypy/pypy/changeset/1ab2965d716a/

Log:    use setup_class here

diff --git a/pypy/jit/backend/test/calling_convention_test.py 
b/pypy/jit/backend/test/calling_convention_test.py
--- a/pypy/jit/backend/test/calling_convention_test.py
+++ b/pypy/jit/backend/test/calling_convention_test.py
@@ -31,9 +31,9 @@
     Ptr = lltype.Ptr
     FuncType = lltype.FuncType
 
-    def __init__(self):
-        self.cpu = getcpuclass()(rtyper=None, stats=FakeStats())
-        self.cpu.setup_once()
+    def setup_class(cls):
+        cls.cpu = getcpuclass()(rtyper=None, stats=FakeStats())
+        cls.cpu.setup_once()
 
     def _prepare_args(self, args, floats, ints):
         local_floats = list(floats)
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to