diff options
| author | Mike Bayer <mike_mp@zzzcomputing.com> | 2012-01-22 17:40:50 -0500 |
|---|---|---|
| committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2012-01-22 17:40:50 -0500 |
| commit | 37773f34488a5f5d65bf31d5d1b899ea56e6af8a (patch) | |
| tree | 259de757db52055abc2798b14316e2c2474596af /test/sql/test_query.py | |
| parent | 09f3a284d82f8aa48e59fd935dc4b8b3fab43e2f (diff) | |
| download | sqlalchemy-37773f34488a5f5d65bf31d5d1b899ea56e6af8a.tar.gz | |
- adjust the test for [ticket:2377] to be less controversial on
problematic backends like Oracle.i
- move the check generated in r85017c4310d2 up for both label name/name
comparisions, fixes additional mismatches which can occur
Diffstat (limited to 'test/sql/test_query.py')
| -rw-r--r-- | test/sql/test_query.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/sql/test_query.py b/test/sql/test_query.py index bcbb15ace..9725d3d3a 100644 --- a/test/sql/test_query.py +++ b/test/sql/test_query.py @@ -317,6 +317,7 @@ class QueryTest(fixtures.TestBase): ) self.metadata.create_all(testing.db) testing.db.execute(content.insert().values(type="t1")) + row = testing.db.execute(content.select(use_labels=True)).first() assert content.c.type in row assert bar.c.content_type not in row @@ -327,8 +328,8 @@ class QueryTest(fixtures.TestBase): assert bar.c.content_type not in row assert sql.column('content_type') in row - row = testing.db.execute(select([(content.c.type > "abc").label("content_type")])).first() - assert content.c.type in row + row = testing.db.execute(select([func.now().label("content_type")])).first() + assert content.c.type not in row assert bar.c.content_type not in row assert sql.column('content_type') in row |
