summaryrefslogtreecommitdiff
path: root/test/dialect/test_mssql.py
diff options
context:
space:
mode:
authorJohn Anderson <sontek@gmail.com>2013-03-18 15:04:30 -0700
committerJohn Anderson <sontek@gmail.com>2013-03-18 15:04:30 -0700
commiteefa4b68f5dce3770d9b95455e9f14439f6bbd72 (patch)
tree0d2a82995b76df70eed537c78b7bb18d6dba2f48 /test/dialect/test_mssql.py
parentcb43db6bd1354191732bf503fac84cf3c261bcb5 (diff)
downloadsqlalchemy-eefa4b68f5dce3770d9b95455e9f14439f6bbd72.tar.gz
cleaned up errors, only check for connection timeout for now
Diffstat (limited to 'test/dialect/test_mssql.py')
-rw-r--r--test/dialect/test_mssql.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/dialect/test_mssql.py b/test/dialect/test_mssql.py
index b38d76372..bddc88777 100644
--- a/test/dialect/test_mssql.py
+++ b/test/dialect/test_mssql.py
@@ -1323,8 +1323,8 @@ class ParseConnectTest(fixtures.TestBase, AssertsCompiledSQL):
def test_pymssql_disconnect(self):
dialect = pymssql.dialect()
- for error in ['20003', '20003', '20006']:
- eq_(dialect.is_disconnect('Error %s' % error, None, None), True)
+ for error in ['Adaptive Server connection timed out', 'message 20003']:
+ eq_(dialect.is_disconnect(error, None, None), True)
@testing.only_on(['mssql+pyodbc', 'mssql+pymssql'], "FreeTDS specific test")
def test_bad_freetds_warning(self):