Author: David Schneider <[email protected]>
Branch: arm-backend-2
Changeset: r52566:cf684bd8d082
Date: 2012-02-16 20:20 +0100
http://bitbucket.org/pypy/pypy/changeset/cf684bd8d082/
Log: skip test_random_effects_on_stacklet_switch if platform is not
supported
diff --git a/pypy/jit/codewriter/test/test_call.py
b/pypy/jit/codewriter/test/test_call.py
--- a/pypy/jit/codewriter/test/test_call.py
+++ b/pypy/jit/codewriter/test/test_call.py
@@ -195,7 +195,14 @@
def test_random_effects_on_stacklet_switch():
from pypy.jit.backend.llgraph.runner import LLtypeCPU
- from pypy.rlib._rffi_stacklet import switch, thread_handle, handle
+ from pypy.translator.platform import CompilationError
+ try:
+ from pypy.rlib._rffi_stacklet import switch, thread_handle, handle
+ except CompilationError as e:
+ if "Unsupported platform!" in e.out:
+ py.test.skip("Unsupported platform!")
+ else:
+ raise e
@jit.dont_look_inside
def f():
switch(rffi.cast(thread_handle, 0), rffi.cast(handle, 0))
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit