Staging
v0.5.1
https://github.com/python/cpython
Raw File
Tip revision: 076ca6c3c8df3030307e548d9be792ce3c1c6eea authored by Martin Panter on 14 July 2016, 01:31:46 UTC
Issue #27369: Don’t test error message detail that changed in Expat 2.2.0
Tip revision: 076ca6c
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