black/tests
Łukasz Langa 9270a10f6f Improve docstring re-indentation handling
This addresses a few crashers, namely:

* producing non-equivalent code due to mangling escaped newlines,

* invalid hugging quote characters in the docstring body to the docstring outer
  triple quotes (causing a quadruple quote which is a syntax error),

* lack of handling for docstrings that start on the same line as the `def`, and

* invalid stripping of outer triple quotes when the docstring contained
  a string prefix.

As a bonus, tests now also run when string normalization is disabled.
2020-08-25 23:14:39 +02:00
..
data Improve docstring re-indentation handling 2020-08-25 23:14:39 +02:00
__init__.py Remove deprecated use of 'setup.py test' (#1275) 2020-05-08 06:23:50 -07:00
empty.toml Add --target-version option to allow users to choose targeted Python versions (#618) 2019-02-06 18:43:50 -08:00
test_black.py Improve docstring re-indentation handling 2020-08-25 23:14:39 +02:00
test_primer.py Capture CalledProcessError for any postitive returncode (#1450) 2020-05-22 12:16:31 -07:00
test.toml Fix toml parsing and bump toml from 0.10.0 to 0.10.1 (#1501) 2020-06-16 11:58:33 -07:00