mirror of
https://github.com/Instagram/LibCST.git
synced 2025-12-23 10:35:53 +00:00
If you have such a program like "pass\\\n", this is technically a program without a trailing newline, since line continuations are defined as being a `\` followed by a newline. We were misdetecting this as having a trailing newline, thus making it impossible to parse the continuation. Add some tests to verify this behavior and then fix the problem. Note that this was found via hypothesis. |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| test_detect_config.py | ||
| test_footer_behavior.py | ||
| test_node_identity.py | ||
| test_parse_errors.py | ||
| test_version_compare.py | ||
| test_whitespace_parser.py | ||
| test_wrapped_tokenize.py | ||