mirror of
https://github.com/python/cpython.git
synced 2025-10-10 00:43:41 +00:00
bpo-40360: Handle PendingDeprecationWarning in test_lib2to3. (GH-21694)
This commit is contained in:
parent
6e8128f02e
commit
cadda52d97
1 changed files with 4 additions and 1 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue