warning_tests.py 240 B

123456789
  1. # Helper module for testing the skipmodules argument of warnings.warn()
  2. import warnings
  3. def outer(message, stacklevel=1):
  4. inner(message, stacklevel)
  5. def inner(message, stacklevel=1):
  6. warnings.warn(message, stacklevel=stacklevel)