From f8a7045f89f03a95cf196dd733ef4d5e4f2168de Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Fri, 15 Apr 2011 20:55:15 -0400 Subject: [PATCH] try a between here since 'in' looks for exact matches, doesn't work with extra thingies in the version --- test/lib/testing.py | 1 - test/orm/test_dynamic.py | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) 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, -- 2.39.5