summaryrefslogtreecommitdiffstats
path: root/tests/QtNetwork/bug_1084.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/QtNetwork/bug_1084.py')
-rw-r--r--tests/QtNetwork/bug_1084.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/QtNetwork/bug_1084.py b/tests/QtNetwork/bug_1084.py
new file mode 100644
index 0000000..9d8471c
--- /dev/null
+++ b/tests/QtNetwork/bug_1084.py
@@ -0,0 +1,16 @@
+''' unit test for BUG #1084 '''
+
+import unittest
+from PySide import QtNetwork
+import py3kcompat as py3k
+
+class QTcpSocketTestCase(unittest.TestCase):
+ def setUp(self):
+ self.sock = QtNetwork.QTcpSocket()
+ self.sock.connectToHost('127.0.0.1', 25)
+
+ def testIt(self):
+ self.sock.write(py3k.unicode_('quit'))
+
+if __name__ == "__main__":
+ unittest.main()