summaryrefslogtreecommitdiff
path: root/tests/functional/n/no/no_dummy_redefined.py
blob: c6b093dad5165c7f2de1b85f430cb07ba4a696b8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
"""Make sure warnings about redefinitions do not trigger for dummy variables."""
from __future__ import print_function


_, INTERESTING = 'a=b'.split('=')

value = 10  # [invalid-name]


def clobbering():
    """Clobbers a dummy name from the outer scope."""
    value = 9  # [redefined-outer-name]
    for _ in range(7):
        print(value)