Message252382
In Lib/test/test_contextlib.py, there is a bug in the nested usage part of the following function:
def test_cm_is_reentrant(self):
ignore_exceptions = suppress(Exception)
with ignore_exceptions:
pass
with ignore_exceptions:
len(5)
with ignore_exceptions:
1/0
with ignore_exceptions: # Check nested usage
len(5)
Specifically, the final 2 lines aren't reached since the exception raised by 1/0 exits the context manager. |
|
Date |
User |
Action |
Args |
2015-10-06 09:21:46 | RazerM | set | recipients:
+ RazerM, ncoghlan, yselivanov |
2015-10-06 09:21:46 | RazerM | set | messageid: <1444123306.69.0.0149294325224.issue25322@psf.upfronthosting.co.za> |
2015-10-06 09:21:46 | RazerM | link | issue25322 messages |
2015-10-06 09:21:46 | RazerM | create | |
|