mirror of
https://github.com/AdaCore/cpython.git
synced 2026-02-12 12:57:15 -08:00
Files
master
10 lines
240 B
Python
10 lines
240 B
Python
# 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)
|