cpython/Lib/test/test_warnings/data/import_warning.py

4 lines
89 B
Python

import warnings
warnings.warn('module-level warning', DeprecationWarning, stacklevel=2)