cpython/Lib/lib2to3/tests/__init__.py
Nikita Sobolev 63a032270e
gh-90971: suppress deprecation warning in test_lib2to3(GH-31464)
Fixes GH-90971

Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Co-authored-by: Éric <merwok@netwok.org>
2022-04-13 07:42:25 -07:00

11 lines
314 B
Python

# Author: Collin Winter
import os
import warnings
from test.support import load_package_tests
def load_tests(*args):
with warnings.catch_warnings():
warnings.filterwarnings('ignore', category=DeprecationWarning, message='lib2to3')
return load_package_tests(os.path.dirname(__file__), *args)