mirror of
https://github.com/python/cpython.git
synced 2025-07-24 03:35:53 +00:00
gh-90971: suppress deprecation warning in test_lib2to3
(GH-31464)
Fixes GH-90971 Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com> Co-authored-by: Éric <merwok@netwok.org>
This commit is contained in:
parent
37a53fb6bd
commit
63a032270e
2 changed files with 5 additions and 4 deletions
|
@ -92,10 +92,8 @@ class TestPgen2Caching(support.TestCase):
|
|||
from lib2to3.pgen2 import driver as pgen2_driver
|
||||
pgen2_driver.load_grammar(%r, save=True, force=True)
|
||||
""" % (grammar_sub_copy,)
|
||||
msg = ("lib2to3 package is deprecated and may not be able "
|
||||
"to parse Python 3.10+")
|
||||
cmd = [sys.executable,
|
||||
f'-Wignore:{msg}:PendingDeprecationWarning',
|
||||
'-Wignore:lib2to3:DeprecationWarning',
|
||||
'-c', code]
|
||||
subprocess.check_call( cmd, env=sub_env)
|
||||
self.assertTrue(os.path.exists(pickle_sub_name))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue