diff options
author | Karthikeyan Singaravelan <tir.karthi@gmail.com> | 2020-07-31 10:50:48 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-31 10:50:48 (GMT) |
commit | cadda52d974937069eeebea1cca4229e2bd400df (patch) | |
tree | d94c105b01efb119a08e38319efc971ebb581dfc /Lib/test/test_lib2to3.py | |
parent | 6e8128f02e1d36e38e5866f9dc36e051caa47bc9 (diff) | |
download | cpython-cadda52d974937069eeebea1cca4229e2bd400df.zip cpython-cadda52d974937069eeebea1cca4229e2bd400df.tar.gz cpython-cadda52d974937069eeebea1cca4229e2bd400df.tar.bz2 |
bpo-40360: Handle PendingDeprecationWarning in test_lib2to3. (GH-21694)
Diffstat (limited to 'Lib/test/test_lib2to3.py')
-rw-r--r-- | Lib/test/test_lib2to3.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Lib/test/test_lib2to3.py b/Lib/test/test_lib2to3.py index 5eaa516..159a838 100644 --- a/Lib/test/test_lib2to3.py +++ b/Lib/test/test_lib2to3.py @@ -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() |