diff options
author | Claudiu Popa <cpopa@cloudbasesolutions.com> | 2014-11-22 15:30:28 +0200 |
---|---|---|
committer | Claudiu Popa <cpopa@cloudbasesolutions.com> | 2014-11-22 15:30:28 +0200 |
commit | 9a3721d31016ccef76dacb13d43903ed496ae078 (patch) | |
tree | 39ebbbdf9d71262f87f19edd81df5361481fed5f | |
parent | 3a11d951e6e968e93b0058d29e383253104b41b1 (diff) | |
download | pylint-9a3721d31016ccef76dacb13d43903ed496ae078.tar.gz |
Fix tests to work with the new astroid release.
-rw-r--r-- | test/input/func_unused_import_py30.py | 1 | ||||
-rw-r--r-- | test/input/func_w0231.py | 2 | ||||
-rw-r--r-- | test/messages/func_unused_import_py30.txt | 7 | ||||
-rw-r--r-- | test/messages/func_w0231.txt | 1 | ||||
-rw-r--r-- | test/messages/func_w0231_py30.txt | 1 |
5 files changed, 3 insertions, 9 deletions
diff --git a/test/input/func_unused_import_py30.py b/test/input/func_unused_import_py30.py index ae6db93..4364e2d 100644 --- a/test/input/func_unused_import_py30.py +++ b/test/input/func_unused_import_py30.py @@ -1,5 +1,6 @@ """check unused import for metaclasses """ +# pylint: disable=no-init,too-few-public-methods __revision__ = 1 import abc import sys diff --git a/test/input/func_w0231.py b/test/input/func_w0231.py index eeefd0c..ce140ff 100644 --- a/test/input/func_w0231.py +++ b/test/input/func_w0231.py @@ -1,4 +1,4 @@ -# pylint: disable=R0903 +# pylint: disable=R0903,no-init """test for __init__ not called """ from __future__ import print_function diff --git a/test/messages/func_unused_import_py30.txt b/test/messages/func_unused_import_py30.txt index 72a21fe..44f1ede 100644 --- a/test/messages/func_unused_import_py30.txt +++ b/test/messages/func_unused_import_py30.txt @@ -1,6 +1 @@ -R: 9:Meta: Too few public methods (0/2)
-R: 15:Meta2: Too few public methods (0/2)
-R: 18:Meta3: Too few public methods (0/2)
-W: 7: Reimport 'ABCMeta' (imported line 6)
-W: 15:Meta2: Class has no __init__ method
-W: 18:Meta3: Class has no __init__ method
\ No newline at end of file +W: 8: Reimport 'ABCMeta' (imported line 7)
\ No newline at end of file diff --git a/test/messages/func_w0231.txt b/test/messages/func_w0231.txt index 8cbf0b7..ffde73e 100644 --- a/test/messages/func_w0231.txt +++ b/test/messages/func_w0231.txt @@ -1,6 +1,5 @@ C: 7:AAAA: Old-style class defined. C: 13:BBBB: Old-style class defined. C: 19:CCCC: 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 diff --git a/test/messages/func_w0231_py30.txt b/test/messages/func_w0231_py30.txt index 44e4f11..0b06839 100644 --- a/test/messages/func_w0231_py30.txt +++ b/test/messages/func_w0231_py30.txt @@ -1,3 +1,2 @@ -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 |