diff options
| author | Martin Packman <martin.packman@canonical.com> | 2012-07-26 12:26:24 +0100 |
|---|---|---|
| committer | Martin Packman <martin.packman@canonical.com> | 2012-07-26 12:26:24 +0100 |
| commit | 8585afdb90152651355bb2529340eba67eae3fbb (patch) | |
| tree | 5d7175bce65afc598d66d2ca49eb028e20a9cceb /testtools/_compat3x.py | |
| parent | a2538440a88396671cfd5f2d2f87f27c06055650 (diff) | |
| download | testtools-8585afdb90152651355bb2529340eba67eae3fbb.tar.gz | |
Simply reraise from the exception instance on py3k
Diffstat (limited to 'testtools/_compat3x.py')
| -rw-r--r-- | testtools/_compat3x.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/testtools/_compat3x.py b/testtools/_compat3x.py index f3d5696..7a482c1 100644 --- a/testtools/_compat3x.py +++ b/testtools/_compat3x.py @@ -13,5 +13,5 @@ __all__ = [ def reraise(exc_class, exc_obj, exc_tb, _marker=object()): """Re-raise an exception received from sys.exc_info() or similar.""" - raise exc_class(*exc_obj.args).with_traceback(exc_tb) + raise exc_obj.with_traceback(exc_tb) |
