Skip to content

Commit cadda52

Browse files
authored
bpo-40360: Handle PendingDeprecationWarning in test_lib2to3. (GH-21694)
1 parent 6e8128f commit cadda52

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Lib/test/test_lib2to3.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
1-
from lib2to3.tests import load_tests
21
import unittest
2+
from test.support.warnings_helper import check_warnings
3+
4+
with check_warnings(("", PendingDeprecationWarning)):
5+
from lib2to3.tests import load_tests
36

47
if __name__ == '__main__':
58
unittest.main()

0 commit comments

Comments
 (0)