summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2020-05-19 22:33:45 (GMT)
committerGitHub <noreply@github.com>2020-05-19 22:33:45 (GMT)
commit059279d8706074489144f6ba8ccc8723e0b85007 (patch)
treec9c608cf992e65c5c42b6f955b5e6957cc643bcd
parent9512ad74b0fcaff023c1ade75313dc8e249aef78 (diff)
downloadcpython-059279d8706074489144f6ba8ccc8723e0b85007.zip
cpython-059279d8706074489144f6ba8ccc8723e0b85007.tar.gz
cpython-059279d8706074489144f6ba8ccc8723e0b85007.tar.bz2
bpo-38870: invalid escape sequence (GH-20240)
`/home/isidentical/cpython/cpython/Lib/test/test_unparse.py:333: DeprecationWarning: invalid escape sequence \X` Automerge-Triggered-By: @pablogsal (cherry picked from commit dd74b6fde31aff9aa46c4fc2a830c569764e1b63) Co-authored-by: Batuhan Taskaya <batuhanosmantaskaya@gmail.com>
-rw-r--r--Lib/test/test_unparse.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_unparse.py b/Lib/test/test_unparse.py
index bb725ce..532aa3a 100644
--- a/Lib/test/test_unparse.py
+++ b/Lib/test/test_unparse.py
@@ -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: