diff options
Diffstat (limited to 'tests/functional')
-rw-r--r-- | tests/functional/u/unused/unused_import_py30.py | 19 | ||||
-rw-r--r-- | tests/functional/u/unused/unused_import_py30.txt | 1 |
2 files changed, 20 insertions, 0 deletions
diff --git a/tests/functional/u/unused/unused_import_py30.py b/tests/functional/u/unused/unused_import_py30.py new file mode 100644 index 000000000..95fed2055 --- /dev/null +++ b/tests/functional/u/unused/unused_import_py30.py @@ -0,0 +1,19 @@ +"""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 # [reimported] + +class Meta(metaclass=abc.ABCMeta): + """ Test """ + def __init__(self): + self.data = sys.executable + self.test = abc + +class Meta2(metaclass=ABCMeta): + """ Test """ + +class Meta3(metaclass=SomethingElse): + """ 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) |