summaryrefslogtreecommitdiff
path: root/test/testlib/testing.py
diff options
context:
space:
mode:
authorJason Kirtland <jek@discorporate.us>2008-05-13 16:39:47 +0000
committerJason Kirtland <jek@discorporate.us>2008-05-13 16:39:47 +0000
commitb97c8f2d60713ff26833e30871607ab29ff347cc (patch)
treecab3716762dd298ef9f9be32d82ad8e3fc56e40c /test/testlib/testing.py
parent559af9986515f275d4fceef3ada6bc8d4c3b8ba1 (diff)
downloadsqlalchemy-b97c8f2d60713ff26833e30871607ab29ff347cc.tar.gz
- Reworked test/orm/mapper
- Exposed some uncovered (and broken) functionality - Fixed [ticket:1038]
Diffstat (limited to 'test/testlib/testing.py')
-rw-r--r--test/testlib/testing.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/testlib/testing.py b/test/testlib/testing.py
index e1f8e4350..da3e81d62 100644
--- a/test/testlib/testing.py
+++ b/test/testlib/testing.py
@@ -629,9 +629,9 @@ class TestBase(unittest.TestCase):
def assertRaisesMessage(self, except_cls, msg, callable_, *args, **kwargs):
try:
callable_(*args, **kwargs)
- assert False, "Callable did not raise expected exception"
+ assert False, "Callable did not raise an exception"
except except_cls, e:
- assert re.search(msg, str(e)), "Exception message did not match: '%s'" % str(e)
+ assert re.search(msg, str(e)), "%r !~ %s" % (msg, e)
if not hasattr(unittest.TestCase, 'assertTrue'):
assertTrue = unittest.TestCase.failUnless