]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.9] bpo-40360: Handle PendingDeprecationWarning in test_lib2to3. (GH-21694) (GH...
authorKarthikeyan Singaravelan <tir.karthi@gmail.com>
Fri, 31 Jul 2020 14:17:18 +0000 (19:47 +0530)
committerGitHub <noreply@github.com>
Fri, 31 Jul 2020 14:17:18 +0000 (07:17 -0700)
(cherry picked from commit cadda52d974937069eeebea1cca4229e2bd400df)

Co-authored-by: Karthikeyan Singaravelan <tir.karthi@gmail.com>
Lib/test/test_lib2to3.py

index 5eaa5164d490a7b0c9f3d3e8d0e3a48da21a8f50..15c317e957bc05e612d09cb15fa5a3f6de739423 100644 (file)
@@ -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()