[pypy-svn] r41422 - in pypy/dist/pypy: module/__builtin__/test objspace/std/test

arigo at codespeak.net arigo at codespeak.net
Mon Mar 26 21:01:59 CEST 2007


Author: arigo
Date: Mon Mar 26 21:01:56 2007
New Revision: 41422

Modified:
   pypy/dist/pypy/module/__builtin__/test/test_builtin.py
   pypy/dist/pypy/objspace/std/test/test_rangeobject.py
Log:
Fixes to shallow "pypy-c -A" failures.


Modified: pypy/dist/pypy/module/__builtin__/test/test_builtin.py
==============================================================================
--- pypy/dist/pypy/module/__builtin__/test/test_builtin.py	(original)
+++ pypy/dist/pypy/module/__builtin__/test/test_builtin.py	Mon Mar 26 21:01:56 2007
@@ -468,7 +468,6 @@
     def setup_class(cls):
         from pypy.conftest import gettestobjspace
         cls.space = gettestobjspace(**{"objspace.opcodes.CALL_LIKELY_BUILTIN": True})
-        assert cls.space.config.objspace.opcodes.CALL_LIKELY_BUILTIN
 
     # hum, we need to invoke the compiler explicitely
     def test_xrange_len(self):

Modified: pypy/dist/pypy/objspace/std/test/test_rangeobject.py
==============================================================================
--- pypy/dist/pypy/objspace/std/test/test_rangeobject.py	(original)
+++ pypy/dist/pypy/objspace/std/test/test_rangeobject.py	Mon Mar 26 21:01:56 2007
@@ -1,10 +1,13 @@
 import py
 
-from pypy.conftest import gettestobjspace
+from pypy.conftest import gettestobjspace, option
 
 class AppTestRangeListObject(object):
 
     def setup_class(cls):
+        if option.runappdirect:
+            py.test.skip("__pypy__.internal_repr() cannot be used to see "
+                         "if a range list was forced on top of pypy-c")
         cls.space = gettestobjspace(**{"objspace.std.withrangelist": True})
         cls.w_not_forced = cls.space.appexec([], """():
             import __pypy__



More information about the Pypy-commit mailing list