This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author martin.panter
Recipients docs@python, martin.panter
Date 2016-07-16.07:47:49
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1468655270.19.0.264691959865.issue27528@psf.upfronthosting.co.za>
In-reply-to
Content
I assumed that the “message” parameter could be used to match any substring of a warning message, but it turns out it calls regex.match(), which is anchored at the beginning of the search string (but is not anchored at the end). I propose this patch to clarify the documentation, and add some tests.
History
Date User Action Args
2016-07-16 07:47:50martin.pantersetrecipients: + martin.panter, docs@python
2016-07-16 07:47:50martin.pantersetmessageid: <1468655270.19.0.264691959865.issue27528@psf.upfronthosting.co.za>
2016-07-16 07:47:50martin.panterlinkissue27528 messages
2016-07-16 07:47:49martin.pantercreate