summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorZackery Spytz <zspytz@gmail.com>2019-08-08 21:48:00 (GMT)
committerMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2019-08-08 21:48:00 (GMT)
commit10a0a093231ea82a3bfd33fd63322aebd8406866 (patch)
treee6f8030d2f2750d0625dc6c5901ef86737f70b63 /Lib
parentf4e725f224b864bf9bf405ff7f863cda46fca1cd (diff)
downloadcpython-10a0a093231ea82a3bfd33fd63322aebd8406866.zip
cpython-10a0a093231ea82a3bfd33fd63322aebd8406866.tar.gz
cpython-10a0a093231ea82a3bfd33fd63322aebd8406866.tar.bz2
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
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_parser.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/Lib/test/test_parser.py b/Lib/test/test_parser.py
index ec1845d..7295f66 100644
--- a/Lib/test/test_parser.py
+++ b/Lib/test/test_parser.py
@@ -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