Skip to content

Commit 5762a3d

Browse files
committed
fix(tests/integration/standard/test_metadata.py): Fixing "DeprecationWarning: invalid escape sequence \" warning
1 parent 425a201 commit 5762a3d

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

tests/integration/standard/test_metadata.py

+4-3
Original file line numberDiff line numberDiff line change
@@ -1593,7 +1593,7 @@ def test_function_no_parameters(self):
15931593

15941594
with self.VerifiedFunction(self, **kwargs) as vf:
15951595
fn_meta = self.keyspace_function_meta[vf.signature]
1596-
self.assertRegexpMatches(fn_meta.as_cql_query(), "CREATE FUNCTION.*%s\(\) .*" % kwargs['name'])
1596+
self.assertRegexpMatches(fn_meta.as_cql_query(), r"CREATE FUNCTION.*%s\(\) .*" % kwargs['name'])
15971597

15981598
def test_functions_follow_keyspace_alter(self):
15991599
"""
@@ -1641,12 +1641,13 @@ def test_function_cql_called_on_null(self):
16411641
kwargs['called_on_null_input'] = True
16421642
with self.VerifiedFunction(self, **kwargs) as vf:
16431643
fn_meta = self.keyspace_function_meta[vf.signature]
1644-
self.assertRegexpMatches(fn_meta.as_cql_query(), "CREATE FUNCTION.*\) CALLED ON NULL INPUT RETURNS .*")
1644+
self.assertRegexpMatches(fn_meta.as_cql_query(), r"CREATE FUNCTION.*\) CALLED ON NULL INPUT RETURNS .*")
16451645

16461646
kwargs['called_on_null_input'] = False
16471647
with self.VerifiedFunction(self, **kwargs) as vf:
16481648
fn_meta = self.keyspace_function_meta[vf.signature]
1649-
self.assertRegexpMatches(fn_meta.as_cql_query(), "CREATE FUNCTION.*\) RETURNS NULL ON NULL INPUT RETURNS .*")
1649+
self.assertRegexpMatches(fn_meta.as_cql_query(),
1650+
r"CREATE FUNCTION.*\) RETURNS NULL ON NULL INPUT RETURNS .*")
16501651

16511652

16521653
class AggregateMetadata(FunctionTest):

0 commit comments

Comments
 (0)