]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
Swap out text_as_varchar on the mssql dialect for the Types tests.
authorMichael Trier <mtrier@gmail.com>
Fri, 2 Jan 2009 20:33:14 +0000 (20:33 +0000)
committerMichael Trier <mtrier@gmail.com>
Fri, 2 Jan 2009 20:33:14 +0000 (20:33 +0000)
test/dialect/mssql.py

index babb493ac6e8666bd1d6de0981b19b04ade6540d..e6422a87a1126e01f09f340e9c1007adcde1a65e 100755 (executable)
@@ -681,6 +681,10 @@ class TypesTest2(TestBase, AssertsExecutionResults):
     def test_char(self):
         """Exercise COLLATE-ish options on string types."""
 
+        # modify the text_as_varchar setting since we are not testing that behavior here
+        text_as_varchar = testing.db.dialect.text_as_varchar
+        testing.db.dialect.text_as_varchar = False
+
         columns = [
             (mssql.MSChar, [], {},
              'CHAR'),
@@ -742,6 +746,8 @@ class TypesTest2(TestBase, AssertsExecutionResults):
             raise
         charset_table.drop()
 
+        testing.db.dialect.text_as_varchar = text_as_varchar
+
     def test_timestamp(self):
         """Exercise TIMESTAMP column."""