[pypy-commit] pypy default: Baaaaaah. "Fix" issue1020.

arigo noreply at buildbot.pypy.org
Sat Jan 28 10:26:24 CET 2012

Author: Armin Rigo <arigo at tunes.org>
Changeset: r51902:451261ed7b89
Date: 2012-01-28 09:26 +0000

Log:	Baaaaaah. "Fix" issue1020.

diff --git a/pypy/rlib/rstacklet.py b/pypy/rlib/rstacklet.py
--- a/pypy/rlib/rstacklet.py
+++ b/pypy/rlib/rstacklet.py
@@ -1,3 +1,4 @@
+import sys
 from pypy.rlib import _rffi_stacklet as _c
 from pypy.rlib import jit
 from pypy.rlib.objectmodel import we_are_translated
@@ -72,6 +73,11 @@
     if translated:
         assert config is not None, ("you have to pass a valid config, "
                                     "e.g. from 'driver.config'")
+    elif '__pypy__' in sys.builtin_module_names:
+        import py
+        py.test.skip("cannot run the stacklet tests on top of pypy: "
+                     "calling directly the C function stacklet_switch() "
+                     "will crash, depending on details of your config")
     if config is not None:
         assert config.translation.continuation, (
             "stacklet: you have to translate with --continuation")

More information about the pypy-commit mailing list