summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/orm/test_query.py12
-rw-r--r--test/orm/test_relationships.py2
-rw-r--r--test/sql/test_types.py2
3 files changed, 8 insertions, 8 deletions
diff --git a/test/orm/test_query.py b/test/orm/test_query.py
index cdc4ac2c2..526ca6d99 100644
--- a/test/orm/test_query.py
+++ b/test/orm/test_query.py
@@ -844,34 +844,34 @@ class InvalidGenerationsTest(QueryTest, AssertsCompiledSQL):
assert_raises_message(
sa_exc.ArgumentError,
- "Object .*User.* is not legal as a SQL literal value",
+ "Object .*User.* is not legal as an SQL literal value",
distinct, User
)
ua = aliased(User)
assert_raises_message(
sa_exc.ArgumentError,
- "Object .*User.* is not legal as a SQL literal value",
+ "Object .*User.* is not legal as an SQL literal value",
distinct, ua
)
s = Session()
assert_raises_message(
sa_exc.ArgumentError,
- "Object .*User.* is not legal as a SQL literal value",
+ "Object .*User.* is not legal as an SQL literal value",
lambda: s.query(User).filter(User.name == User)
)
u1 = User()
assert_raises_message(
sa_exc.ArgumentError,
- "Object .*User.* is not legal as a SQL literal value",
+ "Object .*User.* is not legal as an SQL literal value",
distinct, u1
)
assert_raises_message(
sa_exc.ArgumentError,
- "Object .*User.* is not legal as a SQL literal value",
+ "Object .*User.* is not legal as an SQL literal value",
lambda: s.query(User).filter(User.name == u1)
)
@@ -3261,7 +3261,7 @@ class TextTest(QueryTest, AssertsCompiledSQL):
# so in general the changing of the query structure with string labels
# is dangerous.
#
- # the queries here are again "invalid" from a SQL perspective, as the
+ # the queries here are again "invalid" from SQL perspective, as the
# "name" field isn't matched up to anything.
#
with expect_warnings("Can't resolve label reference 'name';"):
diff --git a/test/orm/test_relationships.py b/test/orm/test_relationships.py
index 061187330..5cde60ade 100644
--- a/test/orm/test_relationships.py
+++ b/test/orm/test_relationships.py
@@ -355,7 +355,7 @@ class M2ODontOverwriteFKTest(fixtures.MappedTest):
class DirectSelfRefFKTest(fixtures.MappedTest, AssertsCompiledSQL):
"""Tests the ultimate join condition, a single column
- that points to itself, e.g. within a SQL function or similar.
+ that points to itself, e.g. within an SQL function or similar.
The test is against a materialized path setup.
this is an **extremely** unusual case::
diff --git a/test/sql/test_types.py b/test/sql/test_types.py
index 3d527b261..df4bcb9aa 100644
--- a/test/sql/test_types.py
+++ b/test/sql/test_types.py
@@ -1949,7 +1949,7 @@ class ExpressionTest(
assert_raises_message(
exc.ArgumentError,
- r"Object some_sqla_thing\(\) is not legal as a SQL literal value",
+ r"Object some_sqla_thing\(\) is not legal as an SQL literal value",
lambda: column('a', String) == SomeSQLAThing()
)