From: Mike Bayer Date: Sun, 19 Feb 2006 00:17:27 +0000 (+0000) Subject: test only for postgres X-Git-Tag: rel_0_1_1~22 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6ade673cfc20e6b06ff21dee6c13e61aec4a66c9;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git test only for postgres --- 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)