[3.9] bpo-40360: Handle PendingDeprecationWarning in test_lib2to3. (GH-21694) (GH-21697)

(cherry picked from commit cadda52d97)

Co-authored-by: Karthikeyan Singaravelan <tir.karthi@gmail.com>
This commit is contained in:
Karthikeyan Singaravelan 2020-07-31 19:47:18 +05:30 committed by GitHub
parent 607ba9deff
commit fe928b32da
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View 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()