Skip to content

Commit

Permalink
Tidy up the accuracy of the test docstring.
Browse files Browse the repository at this point in the history
  • Loading branch information
mbyrnepr2 committed May 30, 2024
1 parent 5ad2dec commit 84f189c
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions tests/functional/r/redefined/redefined_except_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def func():


# https://github.com/pylint-dev/pylint/issues/9671
def function_before():
def function_before_exception():
"""The local variable `e` should not trigger `redefined-outer-name`
when `e` is also defined in the subsequent exception handling block.
"""
Expand All @@ -86,10 +86,9 @@ def function_before():
print(e)


def function_after():
"""function defined after exception handler at module level
The local variable `e` should not trigger `redefined-outer-name`
when `e` is also defined in the subsequent exception handling block.
def function_after_exception():
"""The local variable `e` should not trigger `redefined-outer-name`
when `e` is also defined in the preceding exception handling block.
"""
e = 42
return e

0 comments on commit 84f189c

Please sign in to comment.