bpo-40360: Handle PendingDeprecationWarning in test_lib2to3. (GH-21694)

This commit is contained in:
Karthikeyan Singaravelan 2020-07-31 16:20:48 +05:30 committed by GitHub
parent 6e8128f02e
commit cadda52d97
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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