[3.9] bpo-40360: Handle PendingDeprecationWarning in test_lib2to3. (G… · python/cpython@fe928b3

GitHub

Original file line numberDiff line numberDiff line change@@ -1,5 +1,8 @@

1-fromlib2to3.testsimportload_tests

21importunittest

2+fromtest.supportimportcheck_warnings

3+4+withcheck_warnings(("", PendingDeprecationWarning)):

5+fromlib2to3.testsimportload_tests

3647if__name__=='__main__':

58unittest.main()