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/orm/test_query.py | |
parent | bde46e33593805584c7c0dedb3a666909fb67888 (diff) | |
download | sqlalchemy-pr/266.tar.gz |
Spelling fixespr/266
Diffstat (limited to 'test/orm/test_query.py')
-rw-r--r-- | test/orm/test_query.py | 12 |
1 files changed, 6 insertions, 6 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';"): |