Message282664
It works in usual circumstances.
>>> import warnings
>>> with warnings.catch_warnings(record=True) as w:
... warnings.simplefilter('always')
... warnings.warn('a test warning', DeprecationWarning)
... print(w)
...
[<warnings.WarningMessage object at 0xb6f1714c>] |
|
Date |
User |
Action |
Args |
2016-12-07 20:50:20 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, pitrou, vstinner, ned.deily, charris44 |
2016-12-07 20:50:20 | serhiy.storchaka | set | messageid: <1481143820.17.0.205050929382.issue28897@psf.upfronthosting.co.za> |
2016-12-07 20:50:20 | serhiy.storchaka | link | issue28897 messages |
2016-12-07 20:50:20 | serhiy.storchaka | create | |
|