From a12d12b52f72407b9d6a05d1001a05774e50bc30 Mon Sep 17 00:00:00 2001 From: aplatkouski <5857672+aplatkouski@users.noreply.github.com> Date: Thu, 11 Jun 2020 23:20:23 +0300 Subject: [PATCH] Replace 'overriden' with 'overridden' inside warn Signed-off-by: aplatkouski <5857672+aplatkouski@users.noreply.github.com> --- lib/sqlalchemy/sql/functions.py | 2 +- test/sql/test_functions.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/sqlalchemy/sql/functions.py b/lib/sqlalchemy/sql/functions.py index 057a881a9c..6fff26842d 100644 --- a/lib/sqlalchemy/sql/functions.py +++ b/lib/sqlalchemy/sql/functions.py @@ -58,7 +58,7 @@ def register_function(identifier, fn, package="_default"): if identifier in reg: util.warn( "The GenericFunction '{}' is already registered and " - "is going to be overriden.".format(identifier) + "is going to be overridden.".format(identifier) ) reg[identifier] = fn diff --git a/test/sql/test_functions.py b/test/sql/test_functions.py index 4b35553919..8004ef1bfe 100644 --- a/test/sql/test_functions.py +++ b/test/sql/test_functions.py @@ -260,7 +260,7 @@ class CompileTest(fixtures.TestBase, AssertsCompiledSQL): with expect_warnings( "The GenericFunction 'replaceable_func' is already registered and " - "is going to be overriden.", + "is going to be overridden.", regex=False, ): @@ -283,7 +283,7 @@ class CompileTest(fixtures.TestBase, AssertsCompiledSQL): with expect_warnings( "The GenericFunction 'replaceable_func' is already registered and " - "is going to be overriden.", + "is going to be overridden.", regex=False, ): -- 2.47.3