]> granicus.if.org Git - python/commit
Make test.test_support.catch_warning() take an argument specifying if any
authorBrett Cannon <bcannon@gmail.com>
Thu, 8 May 2008 19:50:51 +0000 (19:50 +0000)
committerBrett Cannon <bcannon@gmail.com>
Thu, 8 May 2008 19:50:51 +0000 (19:50 +0000)
commitbfb997d6a5a7fa79a67d63355390337d4e796b6c
treee1dfb78f5cc6679dd00a96d605198055a07f1de4
parent9d4418242757f616ca7041409c7015e166b2c9f9
Make test.test_support.catch_warning() take an argument specifying if any
triggered warnings should be captured. This allows the context manager to be
used to just prevent the internal state of the 'warnings' framework and thus
allow triggered warnings to be displayed.
Lib/test/test_support.py