mirror of https://github.com/python/cpython
Fix a minor typo in a docstring.
This commit is contained in:
parent
91a57216c9
commit
7b97e8a9c2
|
@ -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"
|
||||
"""
|
||||
|
|
Loading…
Reference in New Issue