From d21b071b8493af642dcb393586655ceaa07397e4 Mon Sep 17 00:00:00 2001 From: Karthikeyan Singaravelan Date: Fri, 31 Jul 2020 03:22:11 +0000 Subject: [PATCH] bpo-40360: Handle PendingDeprecationWarning in test_lib2to3. --- Lib/test/test_lib2to3.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Lib/test/test_lib2to3.py b/Lib/test/test_lib2to3.py index 5eaa5164d490a7..159a8387e4e97d 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.warnings_helper import check_warnings + +with check_warnings(("", PendingDeprecationWarning)): + from lib2to3.tests import load_tests if __name__ == '__main__': unittest.main()