summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/base/except.py9
-rw-r--r--test/dialect/postgres.py2
2 files changed, 10 insertions, 1 deletions
diff --git a/test/base/except.py b/test/base/except.py
index 457137c4c..c2b60f32a 100644
--- a/test/base/except.py
+++ b/test/base/except.py
@@ -25,7 +25,14 @@ class WrapTest(unittest.TestCase):
'', [], OperationalError())
except sa_exceptions.DBAPIError:
self.assert_(True)
-
+
+ def test_tostring(self):
+ try:
+ raise sa_exceptions.DBAPIError.instance(
+ 'this is a message', None, OperationalError())
+ except sa_exceptions.DBAPIError, exc:
+ assert str(exc) == "(OperationalError) 'this is a message' None"
+
def test_db_error_busted_dbapi(self):
try:
raise sa_exceptions.DBAPIError.instance(
diff --git a/test/dialect/postgres.py b/test/dialect/postgres.py
index d613ad2dd..2dfbe018c 100644
--- a/test/dialect/postgres.py
+++ b/test/dialect/postgres.py
@@ -865,6 +865,8 @@ class ArrayTest(TestBase, AssertsExecutionResults):
class TimeStampTest(TestBase, AssertsExecutionResults):
__only_on__ = 'postgres'
+
+ @testing.uses_deprecated()
def test_timestamp(self):
engine = testing.db
connection = engine.connect()