Add tests for the filename.

Test that the stacklevel is handled correctly.
This commit is contained in:
Walter Dörwald 2007-04-03 16:53:43 +00:00
parent 8bd65000d7
commit e1a9b42c38
2 changed files with 33 additions and 0 deletions

View file

@ -0,0 +1,9 @@
# Helper module for testing the skipmodules argument of warnings.warn()
import warnings
def outer(message, stacklevel=1):
inner(message, stacklevel)
def inner(message, stacklevel=1):
warnings.warn(message, stacklevel=stacklevel)