From 98750a2310b9511630f28b62930772f3ed5b0961 Mon Sep 17 00:00:00 2001 From: Torsten Werner Date: Thu, 13 Jan 2011 19:25:29 +0100 Subject: [PATCH] Really fix DebVersion type. Signed-off-by: Torsten Werner --- daklib/dbconn.py | 2 +- tests/db_test.py | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) 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() -- 2.39.5