mirror of https://github.com/swig/swig
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:
parent
8aab1590f2
commit
8c6a0fb5cd
|
@ -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.""")
|
||||
|
|
Loading…
Reference in New Issue