summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcpopa <devnull@localhost>2014-08-17 22:42:13 +0300
committercpopa <devnull@localhost>2014-08-17 22:42:13 +0300
commit98d800bdab4f9d7209b0466ee62036638c511abd (patch)
tree15eb7bb4c21b49e17458744525def6ab115fd5c7
parent7c50e98ba61dc650e995eb0c106ba2487e6e359f (diff)
downloadpylint-98d800bdab4f9d7209b0466ee62036638c511abd.tar.gz
Fix test failures.
-rw-r--r--test/functional/old_style_class_py27.txt4
-rw-r--r--test/input/func_noerror_access_attr_before_def_false_positive.py2
-rw-r--r--test/input/func_noerror_indirect_interface.py2
-rw-r--r--test/messages/func_w0231.txt1
4 files changed, 5 insertions, 4 deletions
diff --git a/test/functional/old_style_class_py27.txt b/test/functional/old_style_class_py27.txt
index 223233e..c46a7b6 100644
--- a/test/functional/old_style_class_py27.txt
+++ b/test/functional/old_style_class_py27.txt
@@ -1,2 +1,2 @@
-old-style-class:4::Old-style class defined.
-old-style-class:7::Old-style class defined.
+old-style-class:4:Old:Old-style class defined.
+old-style-class:7:Child:Old-style class defined.
diff --git a/test/input/func_noerror_access_attr_before_def_false_positive.py b/test/input/func_noerror_access_attr_before_def_false_positive.py
index 3bf966b..7f8bbb4 100644
--- a/test/input/func_noerror_access_attr_before_def_false_positive.py
+++ b/test/input/func_noerror_access_attr_before_def_false_positive.py
@@ -1,4 +1,4 @@
-#pylint: disable=C0103,R0904,R0903,W0201
+#pylint: disable=C0103,R0904,R0903,W0201,old-style-class
"""
This module demonstrates a possible problem of pyLint with calling __init__ s
from inherited classes.
diff --git a/test/input/func_noerror_indirect_interface.py b/test/input/func_noerror_indirect_interface.py
index a0f245a..56d9ddd 100644
--- a/test/input/func_noerror_indirect_interface.py
+++ b/test/input/func_noerror_indirect_interface.py
@@ -1,7 +1,7 @@
"""shows a bug where pylint can't find interfaces when they are
used indirectly. See input/indirect[123].py for details on the
setup"""
-
+# pylint: disable=old-style-class
__revision__ = None
from input.indirect2 import AbstractToto
diff --git a/test/messages/func_w0231.txt b/test/messages/func_w0231.txt
index 8cbf0b7..2f97fba 100644
--- a/test/messages/func_w0231.txt
+++ b/test/messages/func_w0231.txt
@@ -1,6 +1,7 @@
C: 7:AAAA: Old-style class defined.
C: 13:BBBB: Old-style class defined.
C: 19:CCCC: Old-style class defined.
+C: 23:ZZZZ: Old-style class defined.
W: 19:CCCC: Class has no __init__ method
W: 26:ZZZZ.__init__: __init__ method from base class 'BBBB' is not called
W: 59:AssignedInit.__init__: __init__ method from base class 'NewStyleC' is not called