Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
external
/
python
/
cpython2
/
4c9e91a092f55a669b83255ce18bad0c7daa0b31
/
.
/
Lib
/
test
/
warning_tests.py
blob: d0519effdc8785c3386ea562fc700ad2b914e34c [
file
] [
log
] [
blame
]
# 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
)