]> git.decadent.org.uk Git - dak.git/commitdiff
Really fix DebVersion type.
authorTorsten Werner <twerner@debian.org>
Thu, 13 Jan 2011 18:25:29 +0000 (19:25 +0100)
committerTorsten Werner <twerner@debian.org>
Thu, 13 Jan 2011 18:25:29 +0000 (19:25 +0100)
Signed-off-by: Torsten Werner <twerner@debian.org>
daklib/dbconn.py
tests/db_test.py

index 9307633027c31867941f62add1ae588fc1a29ff7..9e1b29bbe44ca84845ac81d2a258059037c7cb52 100755 (executable)
@@ -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"
 
index d8c976af3a8692b3d4312e9d72b94fef4c2a90d9..20955518bacf5d63a019da5324e269576d820e43 100644 (file)
@@ -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()