black/tests
James Addison b8c1020b52
Stability fixup: interaction between newlines and comments (#1975)
* Add test case to illustrate the issue

* Accept carriage returns as valid separators while enumerating comments

Without this acceptance, escaped multi-line statments that use carriage returns will not be counted into the 'ignored_lines' variable since the emitted line values will end with a CR and not an escape character.  That leads to comments associated with the line being incorrectly labeled with the STANDALONE_COMMENT type, affecting comment placement and line space management.

* Remove comment linking to ephemeral build log
2021-02-11 12:11:42 -08:00
..
data Add --skip-magic-trailing-comma (#1824) 2021-01-17 16:59:06 -08: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 Stability fixup: interaction between newlines and comments (#1975) 2021-02-11 12:11:42 -08:00
test_blackd.py Switch to pytest and tox (#1763) 2020-10-19 10:35:26 -07:00
test_format.py Extract formatting tests (#1785) 2020-10-30 08:12:04 -07: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
util.py Extract formatting tests (#1785) 2020-10-30 08:12:04 -07:00