From 3e4e1d88a25a957f3b866bb33d3ee26b1d346e18 Mon Sep 17 00:00:00 2001 From: Steven Robertson Date: Sun, 12 Sep 2010 16:22:56 -0400 Subject: [PATCH] Allow device call exceptions to propagate after cleanup --- cuburn/ptx.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cuburn/ptx.py b/cuburn/ptx.py index 3627bff..b099554 100644 --- a/cuburn/ptx.py +++ b/cuburn/ptx.py @@ -647,7 +647,8 @@ class PTXEntryPoint(PTXFragment): try: self._call(ctx, func, *args, **kwargs) finally: - return ctx.call_teardown(self) + res = ctx.call_teardown(self) + return res class PTXTestFailure(Exception): pass