From: Mike Bayer Date: Sat, 24 Sep 2011 15:16:54 +0000 (-0400) Subject: fix tests here, mssql/mysql are mutually exclusive about x IN/= at least... X-Git-Tag: rel_0_7_3~25 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=705b48aed37173b812700e2eaa0122128e61b32b;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git fix tests here, mssql/mysql are mutually exclusive about x IN/= at least when LIMIT is present --- diff --git a/test/orm/test_eager_relations.py b/test/orm/test_eager_relations.py index d1e4535bd3..a0d8fd3820 100644 --- a/test/orm/test_eager_relations.py +++ b/test/orm/test_eager_relations.py @@ -2540,7 +2540,12 @@ class CorrelatedSubqueryTest(fixtures.MappedTest): stuff_view = select([salias.c.id]).where(salias.c.user_id==users.c.id).\ correlate(users).order_by(salias.c.date.desc()).limit(1) - operator = operators.in_op + # can't win on this one + if testing.against("mssql"): + operator = operators.in_op + else: + operator = operators.eq + if labeled == 'label': stuff_view = stuff_view.label('foo') operator = operators.eq