Author: Armin Rigo <ar...@tunes.org> Branch: Changeset: r50267:70d0240ac95a Date: 2011-12-07 16:41 +0100 http://bitbucket.org/pypy/pypy/changeset/70d0240ac95a/
Log: fix test diff --git a/pypy/objspace/fake/test/test_objspace.py b/pypy/objspace/fake/test/test_objspace.py --- a/pypy/objspace/fake/test/test_objspace.py +++ b/pypy/objspace/fake/test/test_objspace.py @@ -1,6 +1,8 @@ import py from pypy.objspace.fake.objspace import FakeObjSpace, W_Root from pypy.interpreter.argument import Arguments +from pypy.interpreter.typedef import TypeDef +from pypy.interpreter.baseobjspace import Wrappable from pypy.rlib.unroll import unrolling_iterable def test_create(): @@ -53,7 +55,9 @@ def test_gettypefor(self): space = self.space - space.translates(lambda: space.gettypefor(W_Root)) + class W_Foo(Wrappable): + typedef = TypeDef("foo") + space.translates(lambda: space.gettypefor(W_Foo)) def test_is_true(self): space = self.space _______________________________________________ pypy-commit mailing list pypy-commit@python.org http://mail.python.org/mailman/listinfo/pypy-commit