mirror of
https://github.com/python/cpython.git
synced 2025-09-22 08:23:36 +00:00

This should fix the test_py3kwarn failure on OS X. test_support.import_module also requires this.
7 lines
305 B
Python
7 lines
305 B
Python
# Filter out warnings about signed/unsigned constants
|
|
import warnings
|
|
warnings.filterwarnings("ignore", "", FutureWarning, ".*Controls")
|
|
warnings.filterwarnings("ignore", "", FutureWarning, ".*MacTextEditor")
|
|
|
|
from warnings import warnpy3k
|
|
warnpy3k("In 3.x, the Carbon package is removed.", stacklevel=2)
|