[pypy-commit] pypy stacklet: Improve these tests.

arigo noreply at buildbot.pypy.org
Thu Aug 18 10:44:28 CEST 2011


Author: Armin Rigo <arigo at tunes.org>
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


More information about the pypy-commit mailing list