| Index: tests/super_mox.py
|
| diff --git a/tests/super_mox.py b/tests/super_mox.py
|
| index 1a18303ea000b994556883c5891f6bd4ca946bc8..62113e210b57c9b5641aecb45624ebe155906a84 100644
|
| --- a/tests/super_mox.py
|
| +++ b/tests/super_mox.py
|
| @@ -141,8 +141,9 @@ class SuperMoxTestBase(TestCaseUtils, StdoutCheck, mox.MoxTestBase):
|
| if hasattr(parent, item):
|
| try:
|
| self.mox.StubOutWithMock(parent, item)
|
| - except TypeError:
|
| - raise TypeError('Couldn\'t mock %s in %s' % (item, parent.__name__))
|
| + except TypeError, e:
|
| + raise TypeError(
|
| + 'Couldn\'t mock %s in %s: %s' % (item, parent.__name__, e))
|
|
|
| def UnMock(self, obj, name):
|
| """Restore an object inside a test."""
|
|
|