From 824e42b1e60152c0892d51a3e1920b0013bde204 Mon Sep 17 00:00:00 2001 From: Michael Trier Date: Fri, 26 Feb 2010 08:50:04 +0000 Subject: Match tests have been completely wrong. --- test/dialect/test_postgresql.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/dialect/test_postgresql.py') diff --git a/test/dialect/test_postgresql.py b/test/dialect/test_postgresql.py index 60022e18a..9982821c0 100644 --- a/test/dialect/test_postgresql.py +++ b/test/dialect/test_postgresql.py @@ -1641,7 +1641,7 @@ class MatchTest(TestBase, AssertsCompiledSQL): matchtable.insert().execute([ {'id': 1, 'title': 'Agile Web Development with Rails', 'category_id': 2}, {'id': 2, 'title': 'Dive Into Python', 'category_id': 1}, - {'id': 3, 'title': 'Programming Matz''s Ruby', 'category_id': 2}, + {'id': 3, 'title': "Programming Matz's Ruby", 'category_id': 2}, {'id': 4, 'title': 'The Definitive Guide to Django', 'category_id': 1}, {'id': 5, 'title': 'Python in a Nutshell', 'category_id': 1} ]) @@ -1666,7 +1666,7 @@ class MatchTest(TestBase, AssertsCompiledSQL): eq_([2, 5], [r.id for r in results]) def test_simple_match_with_apostrophe(self): - results = matchtable.select().where(matchtable.c.title.match("Matz''s")).execute().fetchall() + results = matchtable.select().where(matchtable.c.title.match("Matz's")).execute().fetchall() eq_([3], [r.id for r in results]) def test_simple_derivative_match(self): -- cgit v1.2.1