You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[easy] test_lib2to3 logs a PendingDeprecationWarning: lib2to3 package is deprecated and may not be able to parse Python 3.10+ #88010
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee=Noneclosed_at=<Date2021-04-16.09:46:02.441>created_at=<Date2021-04-14.11:38:57.758>labels= ['easy', 'tests', '3.10']
title='[easy] test_lib2to3 logs a PendingDeprecationWarning: lib2to3 package is deprecated and may not be able to parse Python 3.10+'updated_at=<Date2021-04-16.09:46:02.440>user='https://github.com/vstinner'
<string>:2: PendingDeprecationWarning: lib2to3 package is deprecated and may not be able to parse Python 3.10+
$ ./python -m test -v test_lib2to3
(...)
test_load_grammar_from_subprocess (lib2to3.tests.test_parser.TestPgen2Caching) ... <string>:2: PendingDeprecationWarning: lib2to3 package is deprecated and may not be able to parse Python 3.10+
ok
(...)
Tests result: SUCCESS
Command to only re-run this test:
./python -Werror -m test -v test_lib2to3 -m test_load_grammar_from_subprocess
changed the title [-][easy][/-][+][easy] test_lib2to3 logs a PendingDeprecationWarning: lib2to3 package is deprecated and may not be able to parse Python 3.10+[/+]on Apr 14, 2021
changed the title [-][easy][/-][+][easy] test_lib2to3 logs a PendingDeprecationWarning: lib2to3 package is deprecated and may not be able to parse Python 3.10+[/+]on Apr 14, 2021
I fixed this in #21694 . Somehow this seems to emit warning over full test run and not in individual case :( Is there a command to reproduce this always? I ran the command but it's successful for me and doesn't show the warning.
Activity
vstinner commentedon Apr 14, 2021
<string>:2: PendingDeprecationWarning: lib2to3 package is deprecated and may not be able to parse Python 3.10+
Command to only re-run this test:
./python -Werror -m test -v test_lib2to3 -m test_load_grammar_from_subprocess
[-][easy][/-][+][easy] test_lib2to3 logs a PendingDeprecationWarning: lib2to3 package is deprecated and may not be able to parse Python 3.10+[/+][-][easy][/-][+][easy] test_lib2to3 logs a PendingDeprecationWarning: lib2to3 package is deprecated and may not be able to parse Python 3.10+[/+]tirkarthi commentedon Apr 14, 2021
I fixed this in #21694 . Somehow this seems to emit warning over full test run and not in individual case :( Is there a command to reproduce this always? I ran the command but it's successful for me and doesn't show the warning.
./python -Werror -m test -v test_lib2to3 -m test_load_grammar_from_subprocess
== CPython 3.10.0a7+ (heads/master:d9151cb453, Apr 13 2021, 03:10:47) [GCC 7.5.0]
== Linux-4.15.0-99-generic-x86_64-with-glibc2.27 little-endian
== cwd: /root/cpython/build/test_python_20462æ
== CPU count: 1
== encodings: locale=UTF-8, FS=utf-8
0:00:00 load avg: 0.02 Run tests sequentially
0:00:00 load avg: 0.02 [1/1] test_lib2to3
test_load_grammar_from_subprocess (lib2to3.tests.test_parser.TestPgen2Caching) ... ok
----------------------------------------------------------------------
Ran 1 test in 0.164s
OK
== Tests result: SUCCESS ==
1 test OK.
Total duration: 303 ms
Tests result: SUCCESS
vstinner commentedon Apr 16, 2021
New changeset 471870f by Victor Stinner in branch 'master':
bpo-43844: Fix PendingDeprecationWarning in test_lib2to3 (GH-25407)
471870f