diff options
author | Dan Albert <danalbert@google.com> | 2021-11-18 15:29:53 -0800 |
---|---|---|
committer | Dan Albert <danalbert@google.com> | 2021-11-18 15:29:53 -0800 |
commit | 612950b6eae36a543f4645d743f5fd02839c9788 (patch) | |
tree | 3031e603522c7cb51097774097abf2ed3dea119a /tests/functional/r/redefined_builtin.py | |
parent | 3c1d8f114801a00b92ab062ceef2244d502bb7ae (diff) | |
parent | d98e6e8adcdc5ebcd9c863f630e748cdba639b0a (diff) | |
download | pylint-612950b6eae36a543f4645d743f5fd02839c9788.tar.gz |
Merge upstream tag v2.11.1.
Test: None
Bug: http://b/206656351
Change-Id: I7831112fa3014bf7998432f9e1ac96be18fca60c
Diffstat (limited to 'tests/functional/r/redefined_builtin.py')
-rw-r--r-- | tests/functional/r/redefined_builtin.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/functional/r/redefined_builtin.py b/tests/functional/r/redefined_builtin.py new file mode 100644 index 000000000..c840f8dd5 --- /dev/null +++ b/tests/functional/r/redefined_builtin.py @@ -0,0 +1,11 @@ +"""Tests for redefining builtins.""" +from __future__ import print_function + +def function(): + """Redefined local.""" + type = 1 # [redefined-builtin] + print(type) + +# pylint:disable=invalid-name +map = {} # [redefined-builtin] +__doc__ = 'reset the doc' |