summaryrefslogtreecommitdiff
path: root/pylint/test/input/func_noerror_socket_member.py
diff options
context:
space:
mode:
Diffstat (limited to 'pylint/test/input/func_noerror_socket_member.py')
-rw-r--r--pylint/test/input/func_noerror_socket_member.py25
1 files changed, 25 insertions, 0 deletions
diff --git a/pylint/test/input/func_noerror_socket_member.py b/pylint/test/input/func_noerror_socket_member.py
new file mode 100644
index 0000000..1cdafe6
--- /dev/null
+++ b/pylint/test/input/func_noerror_socket_member.py
@@ -0,0 +1,25 @@
+"""Testing Pylint with the socket module
+
+Pylint Problem
+==============
+
+Version used:
+
+ - Pylint 0.10.0
+ - Logilab common 0.15.0
+ - Logilab astroid 0.15.1
+
+False E1101 positive, line 23:
+
+ Instance of '_socketobject' has no 'connect' member
+
+"""
+from __future__ import absolute_import
+__revision__ = None
+import socket
+
+if __name__ == "__main__":
+
+ SCKT = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
+ SCKT.connect(('127.0.0.1', 80))
+ SCKT.close()