summaryrefslogtreecommitdiff
path: root/tests/functional/c
diff options
context:
space:
mode:
authorClaudiu Popa <pcmanticore@gmail.com>2019-10-09 09:43:38 +0200
committerClaudiu Popa <pcmanticore@gmail.com>2019-10-09 09:54:52 +0200
commit1e05190ef09f6bdb3d4ce8573e2548853df30cdf (patch)
treeed6017f425c8c04551411ee4aa6e6c89e73ace96 /tests/functional/c
parent3f86141e608afad6b9fb69fcc13b1cf5a8d7eb9f (diff)
downloadpylint-git-1e05190ef09f6bdb3d4ce8573e2548853df30cdf.tar.gz
``import-outside-toplevel`` is emitted for ``ImportFrom`` nodes as well.
Close #3175
Diffstat (limited to 'tests/functional/c')
-rw-r--r--tests/functional/c/consider_using_enumerate.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/functional/c/consider_using_enumerate.py b/tests/functional/c/consider_using_enumerate.py
index 758375c37..cff00aeec 100644
--- a/tests/functional/c/consider_using_enumerate.py
+++ b/tests/functional/c/consider_using_enumerate.py
@@ -49,6 +49,7 @@ def good():
for index in range(len(iterable)):
yield other_obj[index]
+ # pylint: disable=import-outside-toplevel
from unknown import unknown
for index in range(unknown(iterable)):
yield iterable[index]