Kaydet (Commit) 7b97e8a9 authored tarafından Brett Cannon's avatar Brett Cannon

Fix a minor typo in a docstring.

üst 91a57216
......@@ -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"
"""
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment