diff options
author | Pierre Sassoulas <pierre.sassoulas@gmail.com> | 2021-03-08 22:02:17 +0100 |
---|---|---|
committer | Pierre Sassoulas <pierre.sassoulas@gmail.com> | 2021-03-14 19:48:30 +0100 |
commit | 8cbb76ad74c4e8992a66e6a7fc322c3aaea52cb7 (patch) | |
tree | aebf1bc3184c4d9caa8a240846cb9d5967fdf8d4 | |
parent | 461c369712f3535f5d34fd981d9c19914879d536 (diff) | |
download | pylint-git-8cbb76ad74c4e8992a66e6a7fc322c3aaea52cb7.tar.gz |
Migrate func_unused_import_py30.py to new functional tests
-rw-r--r-- | tests/functional/u/unused/unused_import_py30.py (renamed from tests/input/func_unused_import_py30.py) | 5 | ||||
-rw-r--r-- | tests/functional/u/unused/unused_import_py30.txt | 1 | ||||
-rw-r--r-- | tests/messages/func_unused_import_py30.txt | 1 |
3 files changed, 3 insertions, 4 deletions
diff --git a/tests/input/func_unused_import_py30.py b/tests/functional/u/unused/unused_import_py30.py index 91a9e9ac9..95fed2055 100644 --- a/tests/input/func_unused_import_py30.py +++ b/tests/functional/u/unused/unused_import_py30.py @@ -1,11 +1,10 @@ -"""check unused import for metaclasses -""" +"""check unused import for metaclasses""" # pylint: disable=too-few-public-methods,wrong-import-position,ungrouped-imports __revision__ = 1 import abc import sys from abc import ABCMeta -from abc import ABCMeta as SomethingElse +from abc import ABCMeta as SomethingElse # [reimported] class Meta(metaclass=abc.ABCMeta): """ Test """ diff --git a/tests/functional/u/unused/unused_import_py30.txt b/tests/functional/u/unused/unused_import_py30.txt new file mode 100644 index 000000000..1a2ff4fb9 --- /dev/null +++ b/tests/functional/u/unused/unused_import_py30.txt @@ -0,0 +1 @@ +reimported:7:0::Reimport 'ABCMeta' (imported line 6) diff --git a/tests/messages/func_unused_import_py30.txt b/tests/messages/func_unused_import_py30.txt deleted file mode 100644 index 1868abc2d..000000000 --- a/tests/messages/func_unused_import_py30.txt +++ /dev/null @@ -1 +0,0 @@ -W: 8: Reimport 'ABCMeta' (imported line 7)
|