2 from __future__ import absolute_import, print_function
6 from bup.compat import pending_raise
9 def test_pending_raise():
10 outer = Exception('outer')
11 inner = Exception('inner')
16 except Exception as ex:
17 with pending_raise(ex):
19 except Exception as ex:
21 WVPASSEQ(None, getattr(outer, '__context__', None))
26 except Exception as ex:
27 with pending_raise(ex):
29 except Exception as ex:
31 WVPASSEQ(None, getattr(outer, '__context__', None))
32 WVPASSEQ(outer, getattr(inner, '__context__', None))