[pypy-commit] pypy stacklet: Next test.
arigo
noreply at buildbot.pypy.org
Fri Aug 19 14:53:30 CEST 2011
Author: Armin Rigo <arigo at tunes.org>
Branch: stacklet
Changeset: r46635:69257eebe6d0
Date: 2011-08-19 14:56 +0200
http://bitbucket.org/pypy/pypy/changeset/69257eebe6d0/
Log: Next test.
diff --git a/pypy/module/test_lib_pypy/test_greenlet.py b/pypy/module/test_lib_pypy/test_greenlet.py
--- a/pypy/module/test_lib_pypy/test_greenlet.py
+++ b/pypy/module/test_lib_pypy/test_greenlet.py
@@ -44,3 +44,12 @@
seen.append(g.switch())
#
assert seen == [(40, 'x'), (), (41, 'y'), 42, 43, (44, 'z'), 45, None]
+
+ def test_exception_simple(self):
+ from greenlet import greenlet
+ #
+ def fmain():
+ raise ValueError
+ #
+ g1 = greenlet(fmain)
+ raises(ValueError, g1.switch)
More information about the pypy-commit
mailing list