source: python/trunk/Lib/test/warning_tests.py

Last change on this file was 2, checked in by Yuri Dario, 15 years ago

Initial import for vendor code.

  • Property svn:eol-style set to native
File size: 240 bytes
Line 
1# Helper module for testing the skipmodules argument of warnings.warn()
2
3import warnings
4
5def outer(message, stacklevel=1):
6 inner(message, stacklevel)
7
8def inner(message, stacklevel=1):
9 warnings.warn(message, stacklevel=stacklevel)
Note: See TracBrowser for help on using the repository browser.