nebius/SWE-rebench-V2-PRs huggingface dataset:
Repository: GoogleCloudPlatform/cloud-sql-python-connector
Pull request #1115 (2024-06-14 18:52:00)

chore: update typo in 403 error message


Patch:
diff --git a/google/cloud/sql/connector/instance.py b/google/cloud/sql/connector/instance.py
index c7aa237..ab3c29d 100644
--- a/google/cloud/sql/connector/instance.py
+++ b/google/cloud/sql/connector/instance.py
@@ -150,7 +150,7 @@ class RefreshAheadCache:
                 f"refresh operation failed: {str(e)}"
             )
             if e.status == 403:
-                e.message = "Forbidden: Authenticated IAM principal does not seeem authorized to make API request. Verify 'Cloud SQL Admin API' is enabled within your GCP project and 'Cloud SQL Client' role has been granted to IAM principal."
+                e.message = "Forbidden: Authenticated IAM principal does not seem authorized to make API request. Verify 'Cloud SQL Admin API' is enabled within your GCP project and 'Cloud SQL Client' role has been granted to IAM principal."
             raise
 
         except Exception as e:


Test patch:
diff --git a/tests/unit/test_instance.py b/tests/unit/test_instance.py
index 7e01621..9b66767 100644
--- a/tests/unit/test_instance.py
+++ b/tests/unit/test_instance.py
@@ -340,7 +340,7 @@ async def test_ClientResponseError(
             assert e.status == 403
             assert (
                 e.message == "Forbidden: Authenticated IAM principal does not "
-                "seeem authorized to make API request. Verify "
+                "seem authorized to make API request. Verify "
                 "'Cloud SQL Admin API' is enabled within your GCP project and "
                 "'Cloud SQL Client' role has been granted to IAM principal."
             )