8000 Remove invalid syntax in docstrings -S --preview test (#3205) · IBMZ-Linux-OSS-Python/black@507234c · GitHub
[go: up one dir, main page]

Skip to content

Commit 507234c

Browse files
authored
Remove invalid syntax in docstrings -S --preview test (psf#3205)
uR is not a legal string prefix, so this test breaks (AssertionError: cannot use --safe with this file; failed to parse source file AST: invalid syntax) if changed to one in which the file is changed. I've changed the last test to have u alone, and added an R to the test above instead.
1 parent f066e3f commit 507234c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/data/miscellaneous/docstring_preview_no_string_normalization.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ def do_not_touch_this_prefix():
33

44

55
def do_not_touch_this_prefix2():
6-
F'There was a bug where docstring prefixes would be normalized even with -S.'
6+
FR'There was a bug where docstring prefixes would be normalized even with -S.'
77

88

99
def do_not_touch_this_prefix3():
10-
uR'''There was a bug where docstring prefixes would be normalized even with -S.'''
10+
u'''There was a bug where docstring prefixes would be normalized even with -S.'''

0 commit comments

Comments
 (0)
0