commit | bfb997d6a5a7fa79a67d63355390337d4e796b6c | [log] [tgz] |
---|---|---|
author | Brett Cannon <bcannon@gmail.com> | Thu May 08 19:50:51 2008 +0000 |
committer | Brett Cannon <bcannon@gmail.com> | Thu May 08 19:50:51 2008 +0000 |
tree | e1dfb78f5cc6679dd00a96d605198055a07f1de4 | |
parent | 9d4418242757f616ca7041409c7015e166b2c9f9 [diff] |
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.