Author: Armin Rigo <ar...@tunes.org> Branch: SpecialisedTuples Changeset: r50318:bbaae4e2d252 Date: 2011-12-08 22:12 +0100 http://bitbucket.org/pypy/pypy/changeset/bbaae4e2d252/
Log: Fixes for runappdirect on top of pypy. diff --git a/pypy/objspace/std/test/test_specialisedtupleobject.py b/pypy/objspace/std/test/test_specialisedtupleobject.py --- a/pypy/objspace/std/test/test_specialisedtupleobject.py +++ b/pypy/objspace/std/test/test_specialisedtupleobject.py @@ -3,7 +3,7 @@ from pypy.objspace.std.specialisedtupleobject import W_SpecialisedTupleObject from pypy.objspace.std.specialisedtupleobject import _specialisations from pypy.interpreter.error import OperationError -from pypy.conftest import gettestobjspace +from pypy.conftest import gettestobjspace, option from pypy.objspace.std.test import test_tupleobject from pypy.interpreter import gateway @@ -69,7 +69,12 @@ raise OperationError(space.w_ReferenceError, w_tuple) w_tuple.delegating = delegation_forbidden return w_tuple - cls.w_forbid_delegation = cls.space.wrap(gateway.interp2app(forbid_delegation)) + if option.runappdirect: + cls.w_forbid_delegation = lambda self, x: x + cls.test_delegation = lambda self: skip("runappdirect") + else: + cls.w_forbid_delegation = cls.space.wrap( + gateway.interp2app(forbid_delegation)) def w_isspecialised(self, obj, expected=''): import __pypy__ _______________________________________________ pypy-commit mailing list pypy-commit@python.org http://mail.python.org/mailman/listinfo/pypy-commit