[pypy-commit] pypy numpy-exp: Use py.test magic.

alex_gaynor noreply at buildbot.pypy.org
Mon May 16 23:25:32 CEST 2011


Author: Alex Gaynor <alex.gaynor at gmail.com>
Branch: numpy-exp
Changeset: r44222:da45680ce11b
Date: 2011-05-16 16:34 -0500
http://bitbucket.org/pypy/pypy/changeset/da45680ce11b/

Log:	Use py.test magic.

diff --git a/pypy/module/micronumpy/test/test_base.py b/pypy/module/micronumpy/test/test_base.py
--- a/pypy/module/micronumpy/test/test_base.py
+++ b/pypy/module/micronumpy/test/test_base.py
@@ -8,12 +8,7 @@
 
 
 class TestSignature(object):
-    def setup_class(cls):
-        cls.space = gettestobjspace()
-
-    def test_binop_signature(self):
-        space = self.space
-
+    def test_binop_signature(self, space):
         ar = SingleDimArray(10)
         v1 = ar.descr_add(space, ar)
         v2 = ar.descr_add(space, FloatWrapper(2.0))


More information about the pypy-commit mailing list