Author: Armin Rigo <[email protected]>
Branch: stacklet
Changeset: r46594:f0cf906a6a97
Date: 2011-08-18 10:44 +0200
http://bitbucket.org/pypy/pypy/changeset/f0cf906a6a97/

Log:    Improve these tests.

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
@@ -132,12 +132,14 @@
         #
         c = continuation(empty_callback)
         c.switch()
-        raises(error, c.switch)
+        e = raises(error, c.switch)
+        assert str(e.value) == "continuation already finished"
 
     def test_not_initialized_yet(self):
         from _continuation import continuation, error
         c = continuation.__new__(continuation)
-        raises(error, c.switch)
+        e = raises(error, c.switch)
+        assert str(e.value) == "continuation not initialized yet"
 
     def test_go_depth2(self):
         from _continuation import continuation
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to