LibCST/libcst/_parser/tests
Jennifer Taylor 95f649af79 Fix incorrect round-tripping of newlines when parsing statements.
Hypothesis found that when we have a statement like `pass\r`, we detect that
`\r` is the default and parse the trailing newline as `Newline(None)`. However, when
we render the statement back out again, since we don't have a module, we construct
a default module which treats `Newline(None)` as a `\n` not a '\r'. So, when we are
parsing statements or expressions, disable auto-inferring the default newline and always
infer the default rendered newline (`\n`) so that rendering a statement/expression back
out behaves as expected.
2019-08-29 11:33:57 -07:00
..
__init__.py Make parser package private 2019-07-26 12:48:22 -07:00
test_detect_config.py Fix incorrect round-tripping of newlines when parsing statements. 2019-08-29 11:33:57 -07:00
test_footer_behavior.py Make parser package private 2019-07-26 12:48:22 -07:00
test_parse_errors.py Make conversion functions use ParserSyntaxError 2019-08-22 13:35:11 -07:00
test_whitespace_parser.py Make parser package private 2019-07-26 12:48:22 -07:00
test_wrapped_tokenize.py Make ParserSyntaxError more generic (#24) 2019-08-22 13:35:11 -07:00