From 96b9f74184d76251bd7276a75d23e862ad1f8d26 2013-02-21 22:40:24 From: MinRK Date: 2013-02-21 22:40:24 Subject: [PATCH] py3: assign e so it survives outside the scope --- diff --git a/IPython/parallel/tests/test_view.py b/IPython/parallel/tests/test_view.py index c15f426..bdac799 100644 --- a/IPython/parallel/tests/test_view.py +++ b/IPython/parallel/tests/test_view.py @@ -636,8 +636,8 @@ class TestView(ClusterTestCase, ParametricTestCase): ar = self.client.get_result(msg_ids) try: ar.get() - except error.CompositeError as e: - pass + except error.CompositeError as _e: + e = _e else: self.fail("Should have raised CompositeError")