mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-03-25 00:10:44 +01:00
test-client: fix quotation in expected message
With the newer glib and libc in F42 and Ubuntu devel, the
"{left,right} double quotation mark" characters are printed in the
output message. The double quotation marks are multi-byte characters
and they can't be matched using a character class []. Update the
regexp accordingly.
This commit is contained in:
parent
0ac63a4197
commit
5ad712974e
1 changed files with 3 additions and 3 deletions
|
|
@ -2227,9 +2227,9 @@ class TestNmcli(unittest.TestCase):
|
|||
extra_env=no_dbus_env,
|
||||
replace_stderr=[
|
||||
Util.ReplaceTextRegex(
|
||||
# depending on glib version, it prints `%s', '%s', or “%s”.
|
||||
# depending on libc version, it converts unicode to ? or *.
|
||||
r"Key/Value pair 0, [`*?']invalid[*?'], in address element [`*?']very:invalid[*?'] does not contain an equal sign",
|
||||
# Depending on glib version, it prints `%s', '%s', or “%s”.
|
||||
# Some libc versions convert the multi-byte UTF-8 sequence to ? or *.
|
||||
r"Key/Value pair 0, .*invalid.*, in address element .*very:invalid.* does not contain an equal sign",
|
||||
"Key/Value pair 0, 'invalid', in address element 'very:invalid' does not contain an equal sign",
|
||||
)
|
||||
],
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue