summaryrefslogtreecommitdiff
path: root/test/input/func_namedtuple.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/input/func_namedtuple.py')
-rw-r--r--test/input/func_namedtuple.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/input/func_namedtuple.py b/test/input/func_namedtuple.py
new file mode 100644
index 0000000..8cfd048
--- /dev/null
+++ b/test/input/func_namedtuple.py
@@ -0,0 +1,10 @@
+"""Test namedtuple attributes.
+
+Regression test for:
+https://bitbucket.org/logilab/pylint/issue/93/pylint-crashes-on-namedtuple-attribute
+"""
+__revision__ = None
+
+from collections import namedtuple
+Thing = namedtuple('Thing', ())
+print Thing.x