]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix a minor typo in a docstring.
authorBrett Cannon <bcannon@gmail.com>
Tue, 14 Aug 2007 03:38:47 +0000 (03:38 +0000)
committerBrett Cannon <bcannon@gmail.com>
Tue, 14 Aug 2007 03:38:47 +0000 (03:38 +0000)
Lib/test/test_support.py

index cdaee922fd4023ba9929426d5d893f93c98c4c9c..52f74f54a459f62ebc0147e6525bd158646dfd0f 100644 (file)
@@ -302,7 +302,7 @@ def catch_warning():
 
     Use like this:
 
-        with catch_warning as w:
+        with catch_warning() as w:
             warnings.warn("foo")
             assert str(w.message) == "foo"
     """