You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by sm...@apache.org on 2022/10/14 20:41:05 UTC
[cassandra-dtest] branch trunk updated: fix pycodestyle issues for hintedhandoff_test.py::TestHintedHandoff::test_hintedhandoff_window
This is an automated email from the ASF dual-hosted git repository.
smiklosovic pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/cassandra-dtest.git
The following commit(s) were added to refs/heads/trunk by this push:
new 6bf2a1f9 fix pycodestyle issues for hintedhandoff_test.py::TestHintedHandoff::test_hintedhandoff_window
6bf2a1f9 is described below
commit 6bf2a1f98833fd5d561975d7ed422dea899d7102
Author: Stefan Miklosovic <sm...@apache.org>
AuthorDate: Fri Oct 14 22:39:44 2022 +0200
fix pycodestyle issues for hintedhandoff_test.py::TestHintedHandoff::test_hintedhandoff_window
patch by Stefan Miklosovic; reviewed by Brandon Williams for CASSANDRA-17891
---
hintedhandoff_test.py | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/hintedhandoff_test.py b/hintedhandoff_test.py
index 72319e21..c2a1a51a 100644
--- a/hintedhandoff_test.py
+++ b/hintedhandoff_test.py
@@ -215,7 +215,7 @@ class TestHintedHandoff(Tester):
@jira_ticket CASSANDRA-14309
"""
- def wait_for_downtime(node_to_query,node,downtime):
+ def wait_for_downtime(node_to_query, node, downtime):
def endpoint_downtime(node_to_query, node):
mbean = make_mbean('net', type='Gossiper')
with JolokiaAgent(node_to_query) as jmx:
@@ -231,10 +231,9 @@ class TestHintedHandoff(Tester):
while endpoint_downtime(node_to_query, node) <= downtime:
time.sleep(1)
run = False
- except:
+ except Exception:
pass
-
# hint_window_persistent_enabled is set to true by default
self.cluster.set_configuration_options({'max_hint_window_in_ms': 10000,
'hinted_handoff_enabled': True,
@@ -333,5 +332,5 @@ class TestHintedHandoff(Tester):
exception = ex
pass
- if exception != None:
+ if exception is not None:
raise exception
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org