From: Paul Johnston Date: Fri, 8 Feb 2008 13:45:19 +0000 (+0000) Subject: Fix some mssql unit tests X-Git-Tag: rel_0_4_3~30 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5049242f3b101f2b0761e1fb075488983528324f;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git Fix some mssql unit tests --- diff --git a/test/dialect/mssql.py b/test/dialect/mssql.py index 4fb918c7f3..046fede102 100755 --- a/test/dialect/mssql.py +++ b/test/dialect/mssql.py @@ -1,6 +1,8 @@ import testenv; testenv.configure_for_tests() import re from sqlalchemy import * +from sqlalchemy.orm import * +from sqlalchemy import exceptions from sqlalchemy.sql import table, column from sqlalchemy.databases import mssql from testlib import * @@ -184,6 +186,11 @@ class QueryTest(PersistTest): finally: metadata.drop_all() +class Foo(object): + def __init__(self, **kw): + for k in kw: + setattr(self, k, kw[k]) + class GenerativeQueryTest(PersistTest): __only_on__ = 'mssql'