Python runtime test invalid sequence fix
Fixes: DeprecationWarning: invalid escape sequence \] shown using debug build of python-3.7 interpreter.
This commit is contained in:
parent
3af1b74e57
commit
de5a2c496b
2 changed files with 4 additions and 4 deletions
|
|
@ -7,7 +7,7 @@ if count("ab\0ab\0ab\0", 0) != 3:
|
|||
if test1() != "Hello World":
|
||||
raise RuntimeError
|
||||
|
||||
if test2() != " !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_":
|
||||
if test2() != " !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_":
|
||||
raise RuntimeError
|
||||
|
||||
if test3("hello") != "hello-suffix":
|
||||
|
|
@ -27,5 +27,5 @@ if test6(10) != 'xxxxx':
|
|||
if test7() != "Hello world!":
|
||||
raise RuntimeError
|
||||
|
||||
if test8() != " !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_":
|
||||
if test8() != " !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_":
|
||||
raise RuntimeError
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue