summaryrefslogtreecommitdiff
path: root/tests/input/func_unused_import_py30.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/input/func_unused_import_py30.py')
-rw-r--r--tests/input/func_unused_import_py30.py20
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/input/func_unused_import_py30.py b/tests/input/func_unused_import_py30.py
new file mode 100644
index 000000000..91a9e9ac9
--- /dev/null
+++ b/tests/input/func_unused_import_py30.py
@@ -0,0 +1,20 @@
+"""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
+
+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 """