black/tests
Richard Si 18c17bea75
Copy over comments when hugging power ops (#2874)
Otherwise they'd be deleted which was a regression in 22.1.0 (oops! my
bad!). Also type comments are now tracked in the AST safety check on all
compatible platforms to error out if this happens again.

Overall the line rewriting code has been rewritten to do "the right
thing (tm)", I hope this fixes other potential bugs in the code (fwiw I
got to drop the bugfix in blib2to3.pytree.Leaf.clone since now bracket
metadata is properly copied over).

Fixes #2873
2022-07-13 17:02:51 -07:00
..
data Copy over comments when hugging power ops (#2874) 2022-07-13 17:02:51 -07:00
__init__.py Remove deprecated use of 'setup.py test' (#1275) 2020-05-08 06:23:50 -07:00
conftest.py Use optional tests for "no_python2" to simplify local testing (#2203) 2021-05-07 15:03:13 +02:00
empty.toml Add --target-version option to allow users to choose targeted Python versions (#618) 2019-02-06 18:43:50 -08:00
optional.py Support pytest 7 by fixing broken imports (GH-2705) 2021-12-24 22:28:43 -05:00
test_black.py Remove newline after code block open (#3035) 2022-06-11 09:55:01 +03:00
test_blackd.py Remove hard coded test cases (#3062) 2022-05-18 12:11:37 -07:00
test_format.py Test run black on self (#3114) 2022-06-14 09:08:36 -07:00
test_ipynb.py Remove hard coded test cases (#3062) 2022-05-18 12:11:37 -07:00
test_no_ipynb.py Remove hard coded test cases (#3062) 2022-05-18 12:11:37 -07:00
test_trans.py Fix determination of f-string expression spans (#2654) 2021-12-01 09:52:24 -08:00
test.toml Add support for custom python cell magics (#2744) 2022-01-20 16:45:28 -08:00
util.py Remove hard coded test cases (#3062) 2022-05-18 12:11:37 -07:00