uranusjr commented on a change in pull request #19099:
URL: https://github.com/apache/airflow/pull/19099#discussion_r732723554



##########
File path: tests/providers/amazon/aws/utils/eks_test_constants.py
##########
@@ -198,38 +198,41 @@ class RegExTemplates:
     """The compiled RegEx patterns used in testing."""
 
     CLUSTER_ARN: Pattern = re.compile(
-        "arn:"
-        + "(?P<partition>.+):"
-        + "eks:"
-        + "(?P<region>[-0-9a-zA-Z]+):"
-        + "(?P<account_id>[0-9]{12}):"
-        + "cluster/"
-        + "(?P<cluster_name>.+)"
+        r"""arn:
+        (?P<partition>.+):
+        eks:
+        (?P<region>[-0-9a-zA-Z]+):
+        (?P<account_id>[0-9]{12}):
+        cluster/
+        (?P<cluster_name>.+)""",
+        re.VERBOSE,

Review comment:
       We need it to deal with the in-string newlines




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to