Message115434
Similar to assertRaises and assertRaisesRegexp, unittest should provide assertWarns and assertWarnsRegexp, to check that a given callable (or piece of code) triggers a particular warning.
Currently, you have to do that manually using a mixture of warnings.catch_warnings and warnings.filterwarnings, which is pretty annoying. |
|
| Date |
User |
Action |
Args |
| 2010-09-03 10:50:17 | pitrou | set | recipients:
+ pitrou, brett.cannon, michael.foord |
| 2010-09-03 10:50:17 | pitrou | set | messageid: <[email protected]> |
| 2010-09-03 10:50:15 | pitrou | link | issue9754 messages |
| 2010-09-03 10:50:15 | pitrou | create | |
|