source:
python/trunk/Lib/test/warning_tests.py
Last change on this file was 2, checked in by , 15 years ago | |
---|---|
|
|
File size: 240 bytes |
Line | |
---|---|
1 | # Helper module for testing the skipmodules argument of warnings.warn() |
2 | |
3 | import warnings |
4 | |
5 | def outer(message, stacklevel=1): |
6 | inner(message, stacklevel) |
7 | |
8 | def inner(message, stacklevel=1): |
9 | warnings.warn(message, stacklevel=stacklevel) |
Note:
See TracBrowser
for help on using the repository browser.