[Python-checkins] r64913 - python/trunk/Doc/library/test.rst

nick.coghlan python-checkins at python.org
Sun Jul 13 14:36:43 CEST 2008


Author: nick.coghlan
Date: Sun Jul 13 14:36:42 2008
New Revision: 64913
Log:
Correct a couple of errors in the updated catch_warning documentation (the Py3k version was fixed before being checked in)
Modified:
 python/trunk/Doc/library/test.rst
Modified: python/trunk/Doc/library/test.rst
==============================================================================
--- python/trunk/Doc/library/test.rst	(original)
+++ python/trunk/Doc/library/test.rst	Sun Jul 13 14:36:42 2008
@@ -305,9 +305,9 @@
 with catch_warning() as w:
 warnings.simplefilter("always")
 warnings.warn("foo")
- assert w.last == "foo"
+ assert str(w.message) == "foo"
 warnings.warn("bar")
- assert w.last == "bar"
+ assert str(w.message) == "bar"
 assert str(w.warnings[0].message) == "foo"
 assert str(w.warnings[1].message) == "bar"
 


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /