From: Torsten Werner Date: Thu, 13 Jan 2011 18:25:29 +0000 (+0100) Subject: Really fix DebVersion type. X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=98750a2310b9511630f28b62930772f3ed5b0961;p=dak.git Really fix DebVersion type. Signed-off-by: Torsten Werner --- diff --git a/daklib/dbconn.py b/daklib/dbconn.py index 93076330..9e1b29bb 100755 --- a/daklib/dbconn.py +++ b/daklib/dbconn.py @@ -64,7 +64,7 @@ from dak_exceptions import NoSourceFieldError # Patch in support for the debversion field type so that it works during # reflection -class DebVersion(sqltypes.TypeEngine): +class DebVersion(sqltypes.UserDefinedType): def get_col_spec(self): return "DEBVERSION" diff --git a/tests/db_test.py b/tests/db_test.py index d8c976af..20955518 100644 --- a/tests/db_test.py +++ b/tests/db_test.py @@ -42,7 +42,6 @@ class DBDakTestCase(DakTestCase): self.session = DBConn().session() def tearDown(self): - #pass self.session.close() - #self.metadata.drop_all() + self.metadata.drop_all()