-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Parse error found with Hypothesmith #970
Comments
Nice! |
FWIW this is also a bug in upstream lib2to3. You might want to report it on http://bugs.python.org/ |
Nice, would you mind making a PR to add Zac's example as a test case so we can ensure it stays fixed? |
While trying to add a test for this, I've found that this is not solved, but also probably only observable when running directly using black's internals. |
Operating system: Windows
Python version: 3.7.3
Black version: 19.3b0
Does also happen on master: yes (website hangs)
I found this weird little string with
hypothesmith
, a tool for generating Python source code with Hypothesis that I started at the PyCon NA sprints and published at the PyCon AU sprints. Currently it works based on an approximate grammar, post-processing, and filtering.CC @ambv who I know was interested in fuzzing 😄. Next steps... I think a combination of targeted mutation (open PR upstream) and spending more than a few minutes of CPU time could turn up a lot more weird things!
The text was updated successfully, but these errors were encountered: