summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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..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()