Skip to content

Commit fe928b3

Browse files
authored
[3.9] bpo-40360: Handle PendingDeprecationWarning in test_lib2to3. (GH-21694) (GH-21697)
(cherry picked from commit cadda52) Co-authored-by: Karthikeyan Singaravelan <[email protected]>
1 parent 607ba9d commit fe928b3

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Lib/test/test_lib2to3.py

Lines changed: 4 additions & 1 deletion
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 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)