black/tests/data/miscellaneous
Richard Si ad5c315dda
Actually disable docstring prefix normalization with -S + fix instability (#3168)
The former was a regression I introduced a long time ago. To avoid
changing the stable style too much, the regression is only fixed if
--preview is enabled

Annoyingly enough, as we currently always enforce a second format pass if
changes were made, there's no good way to prove the existence of the
docstring quote normalization instability issue. For posterity, here's
one failing example:

    --- source
    +++ first pass
    @@ -1,7 +1,7 @@
     def some_function(self):
    -    ''''<text here>
    +    """ '<text here>

         <text here, since without another non-empty line black is stable>

    -    '''
    +    """
         pass
    --- first pass
    +++ second pass
    @@ -1,7 +1,7 @@
     def some_function(self):
    -    """ '<text here>
    +    """'<text here>

         <text here, since without another non-empty line black is stable>

         """
         pass

Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2022-07-14 19:47:33 -04:00
..
async_as_identifier.py Remove hard coded test cases (#3062) 2022-05-18 12:11:37 -07:00
blackd_diff.diff Remove hard coded test cases (#3062) 2022-05-18 12:11:37 -07:00
blackd_diff.py Remove hard coded test cases (#3062) 2022-05-18 12:11:37 -07:00
debug_visitor.out Remove hard coded test cases (#3062) 2022-05-18 12:11:37 -07:00
debug_visitor.py Remove hard coded test cases (#3062) 2022-05-18 12:11:37 -07:00
decorators.py Remove hard coded test cases (#3062) 2022-05-18 12:11:37 -07:00
docstring_no_string_normalization.py Remove hard coded test cases (#3062) 2022-05-18 12:11:37 -07:00
docstring_preview_no_string_normalization.py Actually disable docstring prefix normalization with -S + fix instability (#3168) 2022-07-14 19:47:33 -04:00
expression_skip_magic_trailing_comma.diff Remove hard coded test cases (#3062) 2022-05-18 12:11:37 -07:00
force_py36.py Remove hard coded test cases (#3062) 2022-05-18 12:11:37 -07:00
force_pyi.py Remove hard coded test cases (#3062) 2022-05-18 12:11:37 -07:00
long_strings_flag_disabled.py Remove hard coded test cases (#3062) 2022-05-18 12:11:37 -07:00
missing_final_newline.diff Remove hard coded test cases (#3062) 2022-05-18 12:11:37 -07:00
missing_final_newline.py Remove hard coded test cases (#3062) 2022-05-18 12:11:37 -07:00
pattern_matching_invalid.py Remove hard coded test cases (#3062) 2022-05-18 12:11:37 -07:00
power_op_newline.py Remove hard coded test cases (#3062) 2022-05-18 12:11:37 -07:00
python2_detection.py Remove hard coded test cases (#3062) 2022-05-18 12:11:37 -07:00
string_quotes.py Remove hard coded test cases (#3062) 2022-05-18 12:11:37 -07:00
stub.pyi Remove hard coded test cases (#3062) 2022-05-18 12:11:37 -07:00