diff options
| author | Ville Skyttä <ville.skytta@iki.fi> | 2016-05-03 22:47:23 +0300 |
|---|---|---|
| committer | Ville Skyttä <ville.skytta@iki.fi> | 2016-05-03 22:47:23 +0300 |
| commit | 49d12142b37dc5ec117a00849f92a503506a08ab (patch) | |
| tree | 28e6e60ba36ae89c209b03359565690d5add3204 /test | |
| parent | bde46e33593805584c7c0dedb3a666909fb67888 (diff) | |
| download | sqlalchemy-pr/266.tar.gz | |
Spelling fixespr/266
Diffstat (limited to 'test')
| -rw-r--r-- | test/orm/test_query.py | 12 | ||||
| -rw-r--r-- | test/orm/test_relationships.py | 2 | ||||
| -rw-r--r-- | test/sql/test_types.py | 2 |
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() ) |
