From: Mike Bayer Date: Tue, 16 Sep 2014 20:20:22 +0000 (-0400) Subject: - raise from cause here to preserve stack trace X-Git-Tag: rel_0_9_8~25 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f6f5fc7f17d7bf6fffd79c507863f120a037a881;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git - raise from cause here to preserve stack trace --- diff --git a/lib/sqlalchemy/testing/exclusions.py b/lib/sqlalchemy/testing/exclusions.py index f6ef72408c..3079f3a224 100644 --- a/lib/sqlalchemy/testing/exclusions.py +++ b/lib/sqlalchemy/testing/exclusions.py @@ -123,7 +123,7 @@ class compound(object): name, fail._as_string(config), str(ex)))) break else: - raise ex + util.raise_from_cause(ex) def _expect_success(self, config, name='block'): if not self.fails: