summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorIlya Maximets <i.maximets@ovn.org>2022-08-04 15:56:13 +0200
committerIlya Maximets <i.maximets@ovn.org>2022-08-04 18:13:20 +0200
commit434025a15453452f76962b5f625dbe30c61615fd (patch)
tree15de0b1ae453aa004cb692d7499c9032ae6ae008 /tests
parent398623a63ed4f35e67292740466a99db018f75b6 (diff)
downloadopenvswitch-434025a15453452f76962b5f625dbe30c61615fd.tar.gz
python: Fix E275 missing whitespace after keyword.
With just released flake8 5.0 we're getting a bunch of E275 errors: utilities/bugtool/ovs-bugtool.in:959:23: E275 missing whitespace after keyword tests/test-ovsdb.py:623:11: E275 missing whitespace after keyword python/setup.py:105:8: E275 missing whitespace after keyword python/setup.py:106:8: E275 missing whitespace after keyword python/ovs/db/idl.py:145:15: E275 missing whitespace after keyword python/ovs/db/idl.py:167:15: E275 missing whitespace after keyword make[2]: *** [flake8-check] Error 1 This breaks CI on branches below 2.16. We don't see a problem right now on newer branches because we're installing extra dependencies that backtrack flake8 down to 4.1 or even 3.9. Acked-by: Mike Pattrick <mkp@redhat.com> Acked-by: Dumitru Ceara <dceara@redhat.com> Signed-off-by: Ilya Maximets <i.maximets@ovn.org>
Diffstat (limited to 'tests')
-rw-r--r--tests/test-ovsdb.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test-ovsdb.py b/tests/test-ovsdb.py
index 853264f22..402cacbe9 100644
--- a/tests/test-ovsdb.py
+++ b/tests/test-ovsdb.py
@@ -620,7 +620,7 @@ def update_condition(idl, commands):
commands = commands[len("condition "):].split(";")
for command in commands:
command = command.split(" ")
- if(len(command) != 2):
+ if len(command) != 2:
sys.stderr.write("Error parsing condition %s\n" % command)
sys.exit(1)