]> git.madduck.net Git - etc/vim.git/commitdiff

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

Remove invalid syntax in docstrings -S --preview test (#3205)
authorTom Fryers <61272761+TomFryers@users.noreply.github.com>
Tue, 2 Aug 2022 21:22:04 +0000 (22:22 +0100)
committerGitHub <noreply@github.com>
Tue, 2 Aug 2022 21:22:04 +0000 (17:22 -0400)
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.

tests/data/miscellaneous/docstring_preview_no_string_normalization.py

index 0957231eb9cc4bb79036933845ef933b6f857dce..338cc01d33e64d6959250eb1002d9155dbe50fd6 100644 (file)
@@ -3,8 +3,8 @@ def do_not_touch_this_prefix():
 
 
 def do_not_touch_this_prefix2():
 
 
 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():
 
 
 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.'''