-
-
Notifications
You must be signed in to change notification settings - Fork 31.8k
test_listcomps
fails when run with -We
#109182
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
It is not the only issue with these tests:
I do not know about |
@serhiy-storchaka thanks for reviewing and improving the tests! Will comment on your PR.
|
…109189) (cherry picked from commit c0f488b) Co-authored-by: Serhiy Storchaka <[email protected]>
Bug report
Bug description:
python -m test test_listcomps
causesSyntaxWarning
s to be emitted onmain
, and fails when run with-We
:Without
-We
:With
-We
:The problematic test is
test_listcomps.ListComprehensionTest.test_comp_in_try_finally
, which was added in d52c448 last weekCPython versions tested on:
CPython main branch
Operating systems tested on:
Windows
Linked PRs
test_listcomps.py
#109183The text was updated successfully, but these errors were encountered: