summaryrefslogtreecommitdiff
path: root/test/input/func_noerror_all_no_inference.py
diff options
context:
space:
mode:
authortmarek <tmarek@google.com>2013-01-08 19:26:13 +0100
committertmarek <tmarek@google.com>2013-01-08 19:26:13 +0100
commitd9cf9d13e239a2b19b1dc485863705f0b8d328ae (patch)
tree2536cc525f6e9df79c9aecb1e99ec80e773056dc /test/input/func_noerror_all_no_inference.py
parent7e2cbf9efb14df4e4a5178522bb5c9476b892a1c (diff)
downloadpylint-stable.tar.gz
Fixed a couple of bugs in the __all__ handling and added a newstable
warning about non-string objects in __all__. Closes #112698
Diffstat (limited to 'test/input/func_noerror_all_no_inference.py')
-rw-r--r--test/input/func_noerror_all_no_inference.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/input/func_noerror_all_no_inference.py b/test/input/func_noerror_all_no_inference.py
new file mode 100644
index 0000000..2d2062d
--- /dev/null
+++ b/test/input/func_noerror_all_no_inference.py
@@ -0,0 +1,14 @@
+"""Test that non-inferable __all__ variables do not make PyLint crash.
+
+"""
+# pylint: disable=R0903,R0201,W0612
+
+__revision__ = 0
+
+__all__ = sorted([
+ 'Dummy',
+ 'NonExistant',
+ 'path',
+ 'func',
+ 'inner',
+ 'InnerKlass'])