summaryrefslogtreecommitdiffstats
path: root/tests/QtCore/bug_994.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/QtCore/bug_994.py')
-rw-r--r--tests/QtCore/bug_994.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/QtCore/bug_994.py b/tests/QtCore/bug_994.py
index 74e352c..5f12a96 100644
--- a/tests/QtCore/bug_994.py
+++ b/tests/QtCore/bug_994.py
@@ -5,6 +5,9 @@ class MyIODevice (QIODevice):
def readData(self, amount):
return "\0a" * (amount/2)
+ def readLineData(self, maxSize):
+ return "\0b" * 4
+
def atEnd(self):
return False
@@ -15,6 +18,7 @@ class TestBug944 (unittest.TestCase):
device.open(QIODevice.ReadOnly)
s = QTextStream(device)
self.assertEqual(s.read(4), "\0a\0a")
+ self.assertEqual(device.readLine(), "\0b\0b\0b\0b")
if __name__ == "__main__":
unittest.main()