testtools: Update to latest version.
[nivanova/samba-autobuild/.git] / lib / testtools / testtools / _compat3x.py
index f3d569662dab150ec6402e6684d2a94955c87a96..7a482c14b4317d302d986ee9e1ade2914ee7940e 100644 (file)
@@ -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)