Skip to content

Commit

Permalink
bpo-37268: test_parser fails when run with -Werror (pythonGH-15183)
Browse files Browse the repository at this point in the history
Use warnings.filterwarnings() when importing the deprecated parser
module.

@pablogsal 


https://bugs.python.org/issue37268



Automerge-Triggered-By: @pablogsal
  • Loading branch information
ZackerySpytz authored and miss-islington committed Aug 8, 2019
1 parent f4e725f commit 10a0a09
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Lib/test/test_parser.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 10a0a09

Please sign in to comment.