From: Mike Bayer Date: Sat, 16 Apr 2011 00:55:15 +0000 (-0400) Subject: try a between here since 'in' looks for exact matches, doesn't work X-Git-Tag: rel_0_7b4~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f8a7045f89f03a95cf196dd733ef4d5e4f2168de;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git try a between here since 'in' looks for exact matches, doesn't work with extra thingies in the version --- diff --git a/test/lib/testing.py b/test/lib/testing.py index 95cda95e84..6512a23d2a 100644 --- a/test/lib/testing.py +++ b/test/lib/testing.py @@ -267,7 +267,6 @@ def _is_excluded(db, op, spec): _is_excluded('bigdb', '==', (9,0,9)) _is_excluded('yikesdb', 'in', ((0, 3, 'alpha2'), (0, 3, 'alpha3'))) """ - vendor_spec = db_spec(db) if not vendor_spec(config.db): diff --git a/test/orm/test_dynamic.py b/test/orm/test_dynamic.py index 215a752391..ce85b20ef6 100644 --- a/test/orm/test_dynamic.py +++ b/test/orm/test_dynamic.py @@ -191,8 +191,8 @@ class DynamicTest(_fixtures.FixtureTest, AssertsCompiledSQL): assert o1 in i1.orders.all() assert i1 in o1.items.all() - @testing.exclude('mysql', 'in', - ((5, 1,49), (5, 1, 50), (5, 1, 51), (5, 1, 52)), + @testing.exclude('mysql', 'between', + ((5, 1,49), (5, 1, 52)), 'https://bugs.launchpad.net/ubuntu/+source/mysql-5.1/+bug/706988') def test_association_nonaliased(self): items, Order, orders, order_items, Item = (self.tables.items,