Skip to content

Commit

Permalink
bpo-40360: Handle PendingDeprecationWarning in test_lib2to3. (pythonG…
Browse files Browse the repository at this point in the history
  • Loading branch information
tirkarthi committed Jul 31, 2020
1 parent 6e8128f commit cadda52
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Lib/test/test_lib2to3.py
Original file line number Diff line number Diff line change
@@ -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()

0 comments on commit cadda52

Please sign in to comment.