-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Parsing the with statement with tuple argument failed #4632
Comments
What I'm surprised by is that this didn't get caught by primer. Fix should be easy though, thanks again for doing your part, the fuzzer is going to help so much going forward. |
This is purely theoretical because it's always a runtime error (tuples don't support the context manager protocol). Still good to fix of course. |
Yes, but I have no choice. pysource-codegen generates its own test cases, which means it would find it if I try to create an exception here. Generating these cases is the best I can do here. |
Yes, that makes sense and I'm grateful that you're doing this; I was replying to Tushar's comment about primer not finding it. |
Describe the bug
The following code can not be parsed/formatted by black:
black reported the following error:
the reported diff in /tmp/blk_umh51eiz.log is:
but it can be parsed by cpython:
result:
Environment
Additional context
The bug was found by pysource-codegen (see #3908)
The above problem description was created from a script, let me know if you think it can be improved.
The text was updated successfully, but these errors were encountered: