[pypy-commit] pypy stacklet: An extra check.
arigo
noreply at buildbot.pypy.org
Thu Aug 18 10:44:27 CEST 2011
Author: Armin Rigo <arigo at tunes.org>
Branch: stacklet
Changeset: r46593:ef519ff63ed8
Date: 2011-08-18 10:42 +0200
http://bitbucket.org/pypy/pypy/changeset/ef519ff63ed8/
Log: An extra check.
diff --git a/pypy/module/_continuation/test/test_stacklet.py b/pypy/module/_continuation/test/test_stacklet.py
--- a/pypy/module/_continuation/test/test_stacklet.py
+++ b/pypy/module/_continuation/test/test_stacklet.py
@@ -32,6 +32,15 @@
assert res == 42
assert seen == [1]
+ def test_no_double_init(self):
+ from _continuation import continuation, error
+ #
+ def empty_callback(c1):
+ pass
+ #
+ c = continuation(empty_callback)
+ raises(error, c.__init__, empty_callback)
+
def test_no_init_after_started(self):
from _continuation import continuation, error
#
More information about the pypy-commit
mailing list