[pypy-commit] pypy arm-backend-2: Create a CPU instance for each test

bivab noreply at buildbot.pypy.org
Wed Jan 18 12:35:40 CET 2012


Author: David Schneider <david.schneider at picle.org>
Branch: arm-backend-2
Changeset: r51437:1c132ebb86eb
Date: 2012-01-18 12:13 +0100
http://bitbucket.org/pypy/pypy/changeset/1c132ebb86eb/

Log:	Create a CPU instance for each test

diff --git a/pypy/jit/backend/arm/test/test_runner.py b/pypy/jit/backend/arm/test/test_runner.py
--- a/pypy/jit/backend/arm/test/test_runner.py
+++ b/pypy/jit/backend/arm/test/test_runner.py
@@ -23,12 +23,9 @@
 
 class TestARM(LLtypeBackendTest):
 
-    def setup_class(cls):
-        cls.cpu = ArmCPU(rtyper=None, stats=FakeStats())
-        cls.cpu.setup_once()
-
-    def teardown_method(self, method):
-        self.cpu.assembler.teardown()
+    def setup_method(self, meth):
+        self.cpu = ArmCPU(rtyper=None, stats=FakeStats())
+        self.cpu.setup_once()
 
     # for the individual tests see
     # ====> ../../test/runner_test.py


More information about the pypy-commit mailing list