From 4b50def6ea5f370dc7267f1bea145115b28e5bd1 Mon Sep 17 00:00:00 2001
From: iElectric <unknown>
Date: Sat, 20 Jun 2009 22:51:07 +0000
Subject: [PATCH] fix bug when initializing CheckConstraint

---
 migrate/changeset/constraint.py   | 1 -
 setup.cfg                         | 6 +++---
 test/changeset/test_constraint.py | 3 +--
 3 files changed, 4 insertions(+), 6 deletions(-)

diff --git a/migrate/changeset/constraint.py b/migrate/changeset/constraint.py
index 4bdbba8..ae103ab 100644
--- a/migrate/changeset/constraint.py
+++ b/migrate/changeset/constraint.py
@@ -147,7 +147,6 @@ class CheckConstraint(ConstraintChangeset, schema.CheckConstraint):
                 'parameter or "columns" to autogenarate it.')
         colnames, table = self._normalize_columns(cols)
         table = kwargs.pop('table', table)
-        ConstraintChangeset.__init__(self, *args, **kwargs)
         schema.CheckConstraint.__init__(self, sqltext, *args, **kwargs)
         if table is not None:
             self.table = table
diff --git a/setup.cfg b/setup.cfg
index 0445ba9..05ad7a5 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -7,9 +7,9 @@ tag_svn_revision = 1
 tag_build = .dev
 
 [nosetests]
-pdb = true
-pdb-failures = true
-stop = true
+#pdb = true
+#pdb-failures = true
+#stop = true
 
 [aliases]
 release = egg_info -RDb ''
diff --git a/test/changeset/test_constraint.py b/test/changeset/test_constraint.py
index ee77aa9..f1fbf36 100644
--- a/test/changeset/test_constraint.py
+++ b/test/changeset/test_constraint.py
@@ -146,8 +146,7 @@ class TestConstraint(CommonTestConstraint):
     @fixture.usedb(not_supported=['sqlite', 'mysql'])
     def test_named_check_constraints(self):
         """Check constraints can be defined, created, and dropped"""
-        self.assertRaises(InvalidConstraintError,
-                          CheckConstraint, 'id > 3')
+        self.assertRaises(InvalidConstraintError, CheckConstraint, 'id > 3')
         cons = CheckConstraint('id > 3', name="id_check", table=self.table)
         cons.create()
         self.refresh_table()