Skip to content

Commit e928c03

Browse files
committed
fix(tests/integration/standard/test_cluster.py): Fixing "DeprecationWarning: invalid escape sequence \" warning
1 parent f3f3aa0 commit e928c03

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/integration/standard/test_cluster.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,8 @@ def test_raise_error_on_control_connection_timeout(self):
150150
get_node(1).pause()
151151
cluster = TestCluster(contact_points=['127.0.0.1'], connect_timeout=1)
152152

153-
with self.assertRaisesRegexp(NoHostAvailable, "OperationTimedOut\('errors=Timed out creating connection \(1 seconds\)"):
153+
with self.assertRaisesRegexp(NoHostAvailable,
154+
r"OperationTimedOut\('errors=Timed out creating connection \(1 seconds\)"):
154155
cluster.connect()
155156
cluster.shutdown()
156157

0 commit comments

Comments
 (0)