[New-bugs-announce] [issue32478] Add tests for 'break' and 'return' inside 'finally' clause

Serhiy Storchaka report at bugs.python.org
Mon Jan 1 17:52:03 EST 2018


New submission from Serhiy Storchaka <storchaka+cpython at gmail.com>:

'break' and 'return' are never used inside 'finally' clause in the stdlib. Therefore these cases are not covered by tests even implicitly. The proposed patch adds explicit tests for them.

'continue' inside 'finally' clause currently is prohibited (see issue1542451) and there are tests for this.

----------
components: Tests
messages: 309352
nosy: serhiy.storchaka
priority: normal
severity: normal
status: open
title: Add tests for 'break' and 'return' inside 'finally' clause
type: enhancement
versions: Python 3.7

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue32478>
_______________________________________


More information about the New-bugs-announce mailing list