summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Trier <mtrier@gmail.com>2009-01-02 20:33:14 +0000
committerMichael Trier <mtrier@gmail.com>2009-01-02 20:33:14 +0000
commit2f2d84fbb14f1282677de8fc1186da8f41081214 (patch)
tree5dde630f09695e565810c99265999dd3e6be8914
parent54598789eed190b9f7efe39202fd71eb33836b28 (diff)
downloadsqlalchemy-2f2d84fbb14f1282677de8fc1186da8f41081214.tar.gz
Swap out text_as_varchar on the mssql dialect for the Types tests.
-rwxr-xr-xtest/dialect/mssql.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/dialect/mssql.py b/test/dialect/mssql.py
index babb493ac..e6422a87a 100755
--- a/test/dialect/mssql.py
+++ b/test/dialect/mssql.py
@@ -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."""