From 6ade673cfc20e6b06ff21dee6c13e61aec4a66c9 Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Sun, 19 Feb 2006 00:17:27 +0000 Subject: [PATCH] test only for postgres --- test/query.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/query.py b/test/query.py index e6eaf198f5..0c0a3ce9cd 100644 --- a/test/query.py +++ b/test/query.py @@ -47,6 +47,8 @@ class QueryTest(PersistTest): that PassiveDefault upon insert, even though PassiveDefault says "let the database execute this", because in postgres we must have all the primary key values in memory before insert; otherwise we cant locate the just inserted row.""" + if not db.engine.__module__.endswith('postgres'): + return try: db.execute(""" CREATE TABLE speedy_users @@ -61,6 +63,7 @@ class QueryTest(PersistTest): t = Table("speedy_users", db, autoload=True) t.insert().execute(user_name='user', user_password='lala') l = t.select().execute().fetchall() + print l self.assert_(l == [(1, 'user', 'lala')]) finally: db.execute("drop table speedy_users", None) -- 2.47.2