diff options
author | Renato Filho <renato.filho@openbossa.org> | 2011-10-03 18:49:42 -0300 |
---|---|---|
committer | Hugo Parente Lima <hugo.pl@gmail.com> | 2012-03-08 16:56:08 -0300 |
commit | 1e29ab65924166688e352eaaa099ad571a980c4f (patch) | |
tree | 2a7ae3cb38b33a3211c9cec0da70016dd5d44c1d /tests/QtCore/bug_994.py | |
parent | a2cb6fe0254a122f0ad9d2ee991d9a249903ee12 (diff) |
Initia QtCore port to python3.
Diffstat (limited to 'tests/QtCore/bug_994.py')
-rw-r--r-- | tests/QtCore/bug_994.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/tests/QtCore/bug_994.py b/tests/QtCore/bug_994.py index 5f12a967b..67070d6d8 100644 --- a/tests/QtCore/bug_994.py +++ b/tests/QtCore/bug_994.py @@ -1,12 +1,14 @@ import unittest -from PySide.QtCore import * +import py3kcompat as py3k +from PySide.QtCore import QIODevice, QTextStream + class MyIODevice (QIODevice): def readData(self, amount): - return "\0a" * (amount/2) + return py3k.b("\0a" * int(amount/2)) def readLineData(self, maxSize): - return "\0b" * 4 + return py3k.b("\0b" * 4) def atEnd(self): return False |