[dak/master] Really fix DebVersion type.
Signed-off-by: Torsten Werner <twerner@debian.org>
---
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 9307633..9e1b29b 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 d8c976a..2095551 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()
--
1.5.6.5
Reply to: