aboutsummaryrefslogtreecommitdiffstats
path: root/tests/QtCore/bug_938.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/QtCore/bug_938.py')
-rw-r--r--tests/QtCore/bug_938.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/QtCore/bug_938.py b/tests/QtCore/bug_938.py
new file mode 100644
index 000000000..b2ab5657c
--- /dev/null
+++ b/tests/QtCore/bug_938.py
@@ -0,0 +1,14 @@
+import unittest
+from PySide.QtCore import *
+
+class TestBug938 (unittest.TestCase):
+
+ def testIt(self):
+ b = QBuffer()
+ b.open(QBuffer.WriteOnly)
+ b.write("\x0023\x005")
+ b.close()
+ self.assertEqual(b.buffer().size(), 5)
+
+if __name__ == '__main__':
+ unittest.main()