]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-38870: invalid escape sequence (GH-20240)
authorBatuhan Taskaya <batuhanosmantaskaya@gmail.com>
Tue, 19 May 2020 22:14:14 +0000 (01:14 +0300)
committerGitHub <noreply@github.com>
Tue, 19 May 2020 22:14:14 +0000 (15:14 -0700)
`/home/isidentical/cpython/cpython/Lib/test/test_unparse.py:333: DeprecationWarning: invalid escape sequence \X`

Automerge-Triggered-By: @pablogsal
Lib/test/test_unparse.py

index bb725ced64db8c44de635a18c883be626d93e344..532aa3a63904141353d0924baf3a486a6080f206 100644 (file)
@@ -330,7 +330,7 @@ class UnparseTestCase(ASTTestCase):
             '\r\\r\t\\t\n\\n',
             '""">>> content = \"\"\"blabla\"\"\" <<<"""',
             r'foo\n\x00',
-            '🐍⛎𩸽üéş^\X\BB\N{LONG RIGHTWARDS SQUIGGLE ARROW}'
+            '🐍⛎𩸽üéş^\N{LONG RIGHTWARDS SQUIGGLE ARROW}'
 
         )
         for docstring in docstrings: