Python code coverage for Lib/test/test_warnings/data/stacklevel.py
# | count | content |
---|---|---|
1 | n/a | # Helper module for testing the skipmodules argument of warnings.warn() |
2 | n/a | |
3 | n/a | import warnings |
4 | n/a | |
5 | n/a | def outer(message, stacklevel=1): |
6 | n/a | inner(message, stacklevel) |
7 | n/a | |
8 | n/a | def inner(message, stacklevel=1): |
9 | n/a | warnings.warn(message, stacklevel=stacklevel) |