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@python
components: Documentation
files: match-start.patch
keywords: patch
messages: 270546
nosy: docs@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 <rep...@bugs.python.org>
<http://bugs.python.org/issue27528>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to