Skip to content

Commit

Permalink
Remove invalid syntax in docstrings -S --preview test (psf#3205)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
TomFryers authored and hugovk committed Sep 3, 2022
1 parent 93d0536 commit cf14a2e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ def do_not_touch_this_prefix():


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


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

0 comments on commit cf14a2e

Please sign in to comment.