summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKarthikeyan Singaravelan <tir.karthi@gmail.com>2020-07-31 14:17:18 (GMT)
committerGitHub <noreply@github.com>2020-07-31 14:17:18 (GMT)
commitfe928b32daca184e16ccc0ebdc20314cfa776b98 (patch)
tree1a3f9a26cba0fc42689959ed197824dd4d3b41bc
parent607ba9deffacc57983978a28c74282dfabcb455d (diff)
downloadcpython-fe928b32daca184e16ccc0ebdc20314cfa776b98.zip
cpython-fe928b32daca184e16ccc0ebdc20314cfa776b98.tar.gz
cpython-fe928b32daca184e16ccc0ebdc20314cfa776b98.tar.bz2
[3.9] bpo-40360: Handle PendingDeprecationWarning in test_lib2to3. (GH-21694) (GH-21697)
(cherry picked from commit cadda52d974937069eeebea1cca4229e2bd400df) Co-authored-by: Karthikeyan Singaravelan <tir.karthi@gmail.com>
-rw-r--r--Lib/test/test_lib2to3.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/Lib/test/test_lib2to3.py b/Lib/test/test_lib2to3.py
index 5eaa516..15c317e 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 import check_warnings
+
+with check_warnings(("", PendingDeprecationWarning)):
+ from lib2to3.tests import load_tests
if __name__ == '__main__':
unittest.main()