diff options
author | Jason Kirtland <jek@discorporate.us> | 2008-05-13 16:39:47 +0000 |
---|---|---|
committer | Jason Kirtland <jek@discorporate.us> | 2008-05-13 16:39:47 +0000 |
commit | b97c8f2d60713ff26833e30871607ab29ff347cc (patch) | |
tree | cab3716762dd298ef9f9be32d82ad8e3fc56e40c /test/testlib/testing.py | |
parent | 559af9986515f275d4fceef3ada6bc8d4c3b8ba1 (diff) | |
download | sqlalchemy-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.py | 4 |
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 |