Skip to content

test-client: fix warnings about invalid escape sequences

Beniamino Galvani requested to merge bg/python-escape-seq into main


In Python 3.12 a backslash-character pair that is not a valid escape sequence generates a SyntaxWarning [1]:

src/tests/client/ SyntaxWarning: invalid escape sequence '\?'
nmc.pexp.expect("Do you want to provide them\? \(yes/no\) \[yes]")

Use raw strings to avoid that.


Merge request reports