summaryrefslogtreecommitdiff
path: root/pylint/test/functional/iterable_context.py
diff options
context:
space:
mode:
Diffstat (limited to 'pylint/test/functional/iterable_context.py')
-rw-r--r--pylint/test/functional/iterable_context.py18
1 files changed, 17 insertions, 1 deletions
diff --git a/pylint/test/functional/iterable_context.py b/pylint/test/functional/iterable_context.py
index 9c5d1b6..fa4e617 100644
--- a/pylint/test/functional/iterable_context.py
+++ b/pylint/test/functional/iterable_context.py
@@ -149,7 +149,10 @@ class BaseType(object):
return True
else:
# error should not be emitted here
- return value in self.valid_values
+ for v in self.valid_values:
+ if value == v:
+ return True
+ return False
class AbstractUrlMarkManager(object):
def __init__(self):
@@ -161,3 +164,16 @@ class AbstractUrlMarkManager(object):
def _init_lineparser(self):
raise NotImplementedError
+
+# class is not named as abstract
+# but still is deduceably abstract
+class UrlMarkManager(object):
+ def __init__(self):
+ self._lineparser = None
+ self._init_lineparser()
+ # error should not be emitted here
+ for line in self._lineparser:
+ print(line)
+
+ def _init_lineparser(self):
+ raise NotImplementedError