[docs] [issue27528] Document that filterwarnings(message=...) matches the start of a message

Martin Panter report at bugs.python.org
Sat Jul 16 03:47:50 EDT 2016


New submission from Martin Panter:

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.

----------
assignee: docs at python
components: Documentation
files: match-start.patch
keywords: patch
messages: 270546
nosy: docs at python, martin.panter
priority: normal
severity: normal
stage: patch review
status: open
title: Document that filterwarnings(message=...) matches the start of a message
versions: Python 2.7, Python 3.5, Python 3.6
Added file: http://bugs.python.org/file43744/match-start.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue27528>
_______________________________________


More information about the docs mailing list