Commit 989b26a8 authored by Thomas Haller's avatar Thomas Haller

tests: don't compare string literal with "is" in "clients/tests/test-client.py"

Recent Python versions warn about this:

  ./clients/tests/test-client.py:569: SyntaxWarning: "is" with a literal. Did you mean "=="?
    elif lang is de:
  ./clients/tests/test-client.py:572: SyntaxWarning: "is" with a literal. Did you mean "=="?
    elif lang is pl:

And rightly so: https://bugs.python.org/issue34850
parent ceae05cc
......@@ -566,10 +566,10 @@ class TestNmcli(NmTestBase):
if lang is None or lang == 'C':
lang = 'C'
language = ''
elif lang is 'de':
elif lang == 'de':
lang = 'de_DE.utf8'
language = 'de'
elif lang is 'pl':
elif lang == 'pl':
lang = 'pl_PL.UTF-8'
language = 'pl'
else:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment