Commit 10a0a093 authored by Zackery Spytz's avatar Zackery Spytz Committed by Miss Islington (bot)

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
parent f4e725f2
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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment