Author: Armin Rigo <[email protected]>
Branch:
Changeset: r51902:451261ed7b89
Date: 2012-01-28 09:26 +0000
http://bitbucket.org/pypy/pypy/changeset/451261ed7b89/
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")
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit