diff options
| author | Pierre Sassoulas <pierre.sassoulas@gmail.com> | 2021-03-07 21:04:55 +0100 |
|---|---|---|
| committer | Pierre Sassoulas <pierre.sassoulas@gmail.com> | 2021-03-07 22:59:36 +0100 |
| commit | 7114fa72ee425bba2524d5ccbe67d0ae84ed9284 (patch) | |
| tree | 8e8975b5e592942fb07779f2d79098ec99fdb2cd /tests/input | |
| parent | 52fd4d0e704d1380ebbe2b2895b6abea8f53a430 (diff) | |
| download | pylint-git-7114fa72ee425bba2524d5ccbe67d0ae84ed9284.tar.gz | |
Migrate func_w0612.py to new functional tests
Diffstat (limited to 'tests/input')
| -rw-r--r-- | tests/input/func_w0612.py | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/tests/input/func_w0612.py b/tests/input/func_w0612.py deleted file mode 100644 index 2c6fee8b8..000000000 --- a/tests/input/func_w0612.py +++ /dev/null @@ -1,37 +0,0 @@ -"""test unused variable -""" -# pylint: disable=invalid-name, redefined-outer-name, no-absolute-import,import-outside-toplevel -from __future__ import print_function -PATH = OS = collections = deque = None - -def function(matches): - """"yo""" - aaaa = 1 - index = -1 - for match in matches: - index += 1 - print(match) - -def visit_if(self, node): - """increments the branches counter""" - branches = 1 - # don't double count If nodes coming from some 'elif' - if node.orelse and len(node.orelse) > 1: - branches += 1 - self.inc_branch(branches) - self.stmts += branches - -def test_global(): - """ Test various assignments of global - variables through imports. - """ - global PATH, OS, collections, deque - from os import path as PATH - import os as OS - import collections - from collections import deque - # make sure that these triggers unused-variable - from sys import platform - from sys import version as VERSION - import this - import re as RE |
