Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions tests/integration/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -976,9 +976,9 @@ def __new__(cls, **kwargs):
# introduced by CASSANDRA-15234
class Cassandra41CCMCluster(CCMCluster):
__test__ = False
IN_MS_REGEX = re.compile('^(\w+)_in_ms$')
IN_KB_REGEX = re.compile('^(\w+)_in_kb$')
ENABLE_REGEX = re.compile('^enable_(\w+)$')
IN_MS_REGEX = re.compile(r'^(\w+)_in_ms$')
IN_KB_REGEX = re.compile(r'^(\w+)_in_kb$')
ENABLE_REGEX = re.compile(r'^enable_(\w+)$')

def _get_config_key(self, k, v):
if "." in k:
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/io/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ def submit_and_wait_for_completion(unit_test, create_timer, start, end, incremen
pending_callbacks.append(callback)

# wait for all the callbacks associated with the timers to be invoked
while len(pending_callbacks) is not 0:
while len(pending_callbacks) != 0:
for callback in pending_callbacks:
if callback.was_invoked():
pending_callbacks.remove(callback)
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/test_exception.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def extract_consistency(self, msg):
:param msg: message with consistency value
:return: String representing consistency value
"""
match = re.search("'consistency':\s+'([\w\s]+)'", msg)
match = re.search(r"'consistency':\s+'([\w\s]+)'", msg)
return match and match.group(1)

def test_timeout_consistency(self):
Expand Down
Loading