]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-40360: Handle PendingDeprecationWarning in test_lib2to3. (GH-21694)
authorKarthikeyan Singaravelan <tir.karthi@gmail.com>
Fri, 31 Jul 2020 10:50:48 +0000 (16:20 +0530)
committerGitHub <noreply@github.com>
Fri, 31 Jul 2020 10:50:48 +0000 (16:20 +0530)
Lib/test/test_lib2to3.py

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