]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
chore: Fix typo in autoflush warning (#12713)
authorSillocan <sillocan@gmail.com>
Wed, 2 Jul 2025 21:20:47 +0000 (14:20 -0700)
committerGitHub <noreply@github.com>
Wed, 2 Jul 2025 21:20:47 +0000 (23:20 +0200)
lib/sqlalchemy/orm/session.py
test/orm/test_utils.py

index 99b7e60125281b06a118e2bdefe726035e255ad6..d590d5de7368a42454cfd09ec0d4d6e44f209634 100644 (file)
@@ -3048,7 +3048,7 @@ class Session(_SessionClassMethods, EventTarget):
         "This warning originated from the Session 'autoflush' process, "
         "which was invoked automatically in response to a user-initiated "
         "operation. Consider using ``no_autoflush`` context manager if this "
-        "warning happended while initializing objects.",
+        "warning happened while initializing objects.",
         sa_exc.SAWarning,
     )
     def _autoflush(self) -> None:
index 35a5060da271671503a61bb95c38f51d5ce64c2b..f437a608504a5dd762d0bddd257f4a45edc2b7e5 100644 (file)
@@ -141,7 +141,7 @@ class ContextualWarningsTest(fixtures.TestBase):
                 "(This warning originated from the Session 'autoflush' "
                 "process, which was invoked automatically in response to a "
                 "user-initiated operation. Consider using ``no_autoflush`` "
-                "context manager if this warning happended while "
+                "context manager if this warning happened while "
                 "initializing objects.)"
             ),
         ):