Staging
v0.5.1
https://github.com/python/cpython
Raw File
Tip revision: 6046c5e0298c25515ea58abc8ab87f7413e3f743 authored by Barry Warsaw on 03 December 2008, 17:29:10 UTC
Oops, one revision we forgot.
Tip revision: 6046c5e
warning_tests.py
# 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)
back to top