summaryrefslogtreecommitdiff
path: root/test/regrtest_data
diff options
context:
space:
mode:
authorDavid Douard <david.douard@logilab.fr>2013-06-17 15:06:48 +0200
committerDavid Douard <david.douard@logilab.fr>2013-06-17 15:06:48 +0200
commit34e999fc8d56fdeadda39bb8f7122e203af7d869 (patch)
tree85c406f60ea59578241ac0959591720d07fa0fda /test/regrtest_data
parentb4a281669859719bf13e01b81c6d979fcc0ea2d7 (diff)
downloadpylint-34e999fc8d56fdeadda39bb8f7122e203af7d869.tar.gz
astng has been renamed astroid
Diffstat (limited to 'test/regrtest_data')
-rw-r--r--test/regrtest_data/decimal_inference.py2
-rw-r--r--test/regrtest_data/import_package_subpackage_module.py24
-rw-r--r--test/regrtest_data/pygtk_enum_crash.py4
3 files changed, 15 insertions, 15 deletions
diff --git a/test/regrtest_data/decimal_inference.py b/test/regrtest_data/decimal_inference.py
index 1b97f60..b47bc1c 100644
--- a/test/regrtest_data/decimal_inference.py
+++ b/test/regrtest_data/decimal_inference.py
@@ -1,7 +1,7 @@
"""hum E1011 on .prec member is justifiable since Context instance are built
using setattr/locals :(
-2007/02/17 update: .prec attribute is now detected by astng :o)
+2007/02/17 update: .prec attribute is now detected by astroid :o)
"""
import decimal
diff --git a/test/regrtest_data/import_package_subpackage_module.py b/test/regrtest_data/import_package_subpackage_module.py
index a1d4747..937c8c3 100644
--- a/test/regrtest_data/import_package_subpackage_module.py
+++ b/test/regrtest_data/import_package_subpackage_module.py
@@ -1,6 +1,6 @@
# pylint: disable=I0011,C0301,W0611
"""I found some of my scripts trigger off an AttributeError in pylint
-0.8.1 (with common 0.12.0 and astng 0.13.1).
+0.8.1 (with common 0.12.0 and astroid 0.13.1).
Traceback (most recent call last):
File "/usr/bin/pylint", line 4, in ?
@@ -10,18 +10,18 @@ Traceback (most recent call last):
File "/usr/lib/python2.4/site-packages/pylint/lint.py", line 412, in check
self.check_file(filepath, modname, checkers)
File "/usr/lib/python2.4/site-packages/pylint/lint.py", line 426, in check_file
- astng = self._check_file(filepath, modname, checkers)
+ astroid = self._check_file(filepath, modname, checkers)
File "/usr/lib/python2.4/site-packages/pylint/lint.py", line 450, in _check_file
- self.check_astng_module(astng, checkers)
- File "/usr/lib/python2.4/site-packages/pylint/lint.py", line 494, in check_astng_module
- self.astng_events(astng, [checker for checker in checkers
- File "/usr/lib/python2.4/site-packages/pylint/lint.py", line 511, in astng_events
- self.astng_events(child, checkers, _reversed_checkers)
- File "/usr/lib/python2.4/site-packages/pylint/lint.py", line 511, in astng_events
- self.astng_events(child, checkers, _reversed_checkers)
- File "/usr/lib/python2.4/site-packages/pylint/lint.py", line 508, in astng_events
- checker.visit(astng)
- File "/usr/lib/python2.4/site-packages/logilab/astng/utils.py", line 84, in visit
+ self.check_astroid_module(astroid, checkers)
+ File "/usr/lib/python2.4/site-packages/pylint/lint.py", line 494, in check_astroid_module
+ self.astroid_events(astroid, [checker for checker in checkers
+ File "/usr/lib/python2.4/site-packages/pylint/lint.py", line 511, in astroid_events
+ self.astroid_events(child, checkers, _reversed_checkers)
+ File "/usr/lib/python2.4/site-packages/pylint/lint.py", line 511, in astroid_events
+ self.astroid_events(child, checkers, _reversed_checkers)
+ File "/usr/lib/python2.4/site-packages/pylint/lint.py", line 508, in astroid_events
+ checker.visit(astroid)
+ File "/usr/lib/python2.4/site-packages/logilab/astroid/utils.py", line 84, in visit
method(node)
File "/usr/lib/python2.4/site-packages/pylint/checkers/variables.py", line 295, in visit_import
self._check_module_attrs(node, module, name_parts[1:])
diff --git a/test/regrtest_data/pygtk_enum_crash.py b/test/regrtest_data/pygtk_enum_crash.py
index 8ac9e57..471afe3 100644
--- a/test/regrtest_data/pygtk_enum_crash.py
+++ b/test/regrtest_data/pygtk_enum_crash.py
@@ -4,8 +4,8 @@
import gtk
def print_some_constant(arg=gtk.BUTTONS_OK):
- """crash because gtk.BUTTONS_OK, a gtk enum type, is returned by astng as a
- constant
+ """crash because gtk.BUTTONS_OK, a gtk enum type, is returned by
+ astroid as a constant
"""
print arg