mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
bpo-37268: test_parser fails when run with -Werror (GH-15183)
Use warnings.filterwarnings() when importing the deprecated parser module. @pablogsal https://bugs.python.org/issue37268 Automerge-Triggered-By: @pablogsal
This commit is contained in:
parent
f4e725f224
commit
10a0a09323
1 changed files with 5 additions and 1 deletions
|
@ -1,5 +1,9 @@
|
|||
import copy
|
||||
import parser
|
||||
import warnings
|
||||
with warnings.catch_warnings():
|
||||
warnings.filterwarnings('ignore', 'The parser module is deprecated',
|
||||
DeprecationWarning)
|
||||
import parser
|
||||
import pickle
|
||||
import unittest
|
||||
import operator
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue