repo.or.cz
/
python.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Issue #7051: Clarify behaviour of 'g' and 'G'-style formatting.
[python.git]
/
Lib
/
test
/
warning_tests.py
blob
d0519effdc8785c3386ea562fc700ad2b914e34c
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
)