Staging
v0.8.1
https://github.com/python/cpython
Raw File
Tip revision: da71013c117825c6727f9409cf29b902cd308c35 authored by Georg Brandl on 08 May 2011, 07:10:29 UTC
Update suspicious ignore file.
Tip revision: da71013
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