Testcase fix for python-3.12

https://docs.python.org/3.12/whatsnew/3.12.html

A backslash-character pair that is not a valid escape sequence now
generates a SyntaxWarning
This commit is contained in:
William S Fulton 2023-08-16 21:53:16 +01:00
parent 8aab1590f2
commit 8c6a0fb5cd
1 changed files with 2 additions and 2 deletions

View File

@ -65,11 +65,11 @@ documentation
comment""")
check(inspect.getdoc(RawStringDoc.YY), """Single line "raw string" documentation comment""")
check(inspect.getdoc(RawStringDoc.ZZ),
"""Documentation comment
r"""Documentation comment
as a "raw string"
on multiple lines including a \ backslash""")
check(mm, """)I'm an "ascii" \ string constant with multiple
check(mm, r""")I'm an "ascii" \ string constant with multiple
lines.""")