black/tests
Paul "TBBle" Hampson cd4295dd98
Indicate that a final newline was added in --diff (#1897) (#1897)
Fixes: #1662

Work-around for https://bugs.python.org/issue2142

The test has to slightly mess with its input data, because the utility
functions default to ensuring the test data has a final newline, which
defeats the point of the test.

Signed-off-by: Paul "TBBle" Hampson <Paul.Hampson@Pobox.com>
2021-02-21 22:43:23 -08:00
..
data Indicate that a final newline was added in --diff (#1897) (#1897) 2021-02-21 22:43:23 -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 Indicate that a final newline was added in --diff (#1897) (#1897) 2021-02-21 22:43:23 -08:00
test_blackd.py Switch to pytest and tox (#1763) 2020-10-19 10:35:26 -07:00
test_format.py Add "# fmt: skip" directive to black (#1800) 2021-02-15 08:02:48 -08: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