]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
Added new requirement for check_constraints
authorScott Dugas <scott.dugas@foundationdb.com>
Thu, 23 Oct 2014 15:46:34 +0000 (11:46 -0400)
committerScott Dugas <scott.dugas@foundationdb.com>
Thu, 23 Oct 2014 15:46:34 +0000 (11:46 -0400)
test/engine/test_reflection.py
test/requirements.py

index c18b8b94462b2f633831ba7c35352fa3e1f004fc..087610333f3e562f6c99dbcf6cf3dc25467dade5 100644 (file)
@@ -799,6 +799,7 @@ class ReflectionTest(fixtures.TestBase, ComparesTables):
 
 
     @testing.crashes('oracle', 'FIXME: unknown, confirm not fails_on')
+    @testing.requires.check_constraints
     @testing.provide_metadata
     def test_reserved(self):
 
index 7eeabef2b4892cd17745b1e0fdd18cea6a237a67..432dc645cca2db6e9dbf1d62149c5f25fc97a3cf 100644 (file)
@@ -38,6 +38,12 @@ class DefaultRequirements(SuiteRequirements):
             no_support('mssql', 'not supported by database'),
             ])
 
+    @property
+    def check_constraints(self):
+        """Target database must support check constraints."""
+
+        return exclusions.open()
+
     @property
     def named_constraints(self):
         """target database must support names for constraints."""