Skip to content

Commit cdad742

Browse files
committed
ts: fix invalid escape sequence warning with Python 3.12
1 parent 9ae9c40 commit cdad742

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

testsuite/install.00-init/080-args.exp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,9 +141,12 @@ foreach shell $othlang_list {
141141
testall_cmd_re "$shell" "append-path,-d, ,FOO,/path/to/dir2:source,$modfile" "" "$premsg$foo /path/to/dir2" 0
142142
# langs swallow \$ differently
143143
switch -- $shell {
144-
{tcl} - {python} {
144+
tcl {
145145
testall_cmd_re "$shell" "append-path,FOO,\\\$foo:source,$modfile" "" "$foo:\\\\\\\$foo" 0
146146
}
147+
python {
148+
testall_cmd_re "$shell" "append-path,FOO,\\\$foo:source,$modfile" "" "(<string>:3: SyntaxWarning: invalid escape sequence '\\\\\\$'\\n)?$foo:\\\\\\\$foo" 0
149+
}
147150
default {
148151
testall_cmd_re "$shell" "append-path,FOO,\\\$foo:source,$modfile" "" "$foo:\\\$foo" 0
149152
}

0 commit comments

Comments
 (0)