From: Karthikeyan Singaravelan Date: Fri, 31 Jul 2020 14:17:18 +0000 (+0530) Subject: [3.9] bpo-40360: Handle PendingDeprecationWarning in test_lib2to3. (GH-21694) (GH... X-Git-Tag: v3.9.0rc1~27 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=fe928b32daca184e16ccc0ebdc20314cfa776b98;p=thirdparty%2FPython%2Fcpython.git [3.9] bpo-40360: Handle PendingDeprecationWarning in test_lib2to3. (GH-21694) (GH-21697) (cherry picked from commit cadda52d974937069eeebea1cca4229e2bd400df) Co-authored-by: Karthikeyan Singaravelan --- diff --git a/Lib/test/test_lib2to3.py b/Lib/test/test_lib2to3.py index 5eaa5164d490..15c317e957bc 100644 --- a/Lib/test/test_lib2to3.py +++ b/Lib/test/test_lib2to3.py @@ -1,5 +1,8 @@ -from lib2to3.tests import load_tests import unittest +from test.support import check_warnings + +with check_warnings(("", PendingDeprecationWarning)): + from lib2to3.tests import load_tests if __name__ == '__main__': unittest.main()