summaryrefslogtreecommitdiff
path: root/tests/functional/u/undefined/undefined_variable_py30.py
diff options
context:
space:
mode:
authorMark Byrne <31762852+mbyrnepr2@users.noreply.github.com>2022-08-18 22:13:23 +0200
committerGitHub <noreply@github.com>2022-08-18 22:13:23 +0200
commit82d55aee4ae3718b77fbec70e5d7d80c70adfa27 (patch)
treeb8947faffa21e7401d176cc822ffe75191a18576 /tests/functional/u/undefined/undefined_variable_py30.py
parenta2c57ec06070b6d2485082e3a131a087f8d6d921 (diff)
downloadpylint-git-82d55aee4ae3718b77fbec70e5d7d80c70adfa27.tar.gz
Remove Python 2 code from the tests & refactor (#7320)
- Refactor Classes which inherit from `object`. - Remove `import print_function from __future__`. - Remove assignments to `__revision__` from the functional test module when it is never used throughout the module. Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
Diffstat (limited to 'tests/functional/u/undefined/undefined_variable_py30.py')
-rw-r--r--tests/functional/u/undefined/undefined_variable_py30.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/functional/u/undefined/undefined_variable_py30.py b/tests/functional/u/undefined/undefined_variable_py30.py
index a0beef00e..0b5aa0422 100644
--- a/tests/functional/u/undefined/undefined_variable_py30.py
+++ b/tests/functional/u/undefined/undefined_variable_py30.py
@@ -1,7 +1,7 @@
"""Test warnings about access to undefined variables
for various Python 3 constructs. """
# pylint: disable=too-few-public-methods, import-error
-# pylint: disable=wrong-import-position, invalid-metaclass, useless-object-inheritance
+# pylint: disable=wrong-import-position, invalid-metaclass
class Undefined:
""" test various annotation problems. """
@@ -37,7 +37,7 @@ class Undefined1:
""" Triggers undefined-variable. """
-class FalsePositive342(object):
+class FalsePositive342:
# pylint: disable=line-too-long
""" Fix some false positives found in
https://bitbucket.org/logilab/pylint/issue/342/spurious-undefined-variable-for-class