blob: efc133c2b0171e502c2e3ebdd7aa6a4057955f97 (
plain)
1
2
3
4
5
6
7
8
9
|
# pylint: disable=missing-docstring
def func():
"""Test that a variable defined in a finally clause does not trigger a false positive"""
try:
variable = 1
yield variable
finally:
variable = 2
yield variable
|