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_723.py | |
parent | a2cb6fe0254a122f0ad9d2ee991d9a249903ee12 (diff) |
Initia QtCore port to python3.
Diffstat (limited to 'tests/QtCore/bug_723.py')
-rw-r--r-- | tests/QtCore/bug_723.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/QtCore/bug_723.py b/tests/QtCore/bug_723.py index 319c04bad..5bffe5618 100644 --- a/tests/QtCore/bug_723.py +++ b/tests/QtCore/bug_723.py @@ -12,7 +12,7 @@ class MyFileEngine (QAbstractFileEngine): return True def read(self, maxlen): - print "Reading... to return ", self.contents[self.pos:maxlen] + print("Reading... to return ", self.contents[self.pos:maxlen]) if self.pos > len(self.contents): return -1 @@ -39,10 +39,16 @@ class TestBug723 (unittest.TestCase): f = QFile("foo:/bar") + print(type(QFile.ReadOnly)) + v = (QFile.ReadOnly | QFile.Text) + print(type(v)) + + """ assert(f.open(QFile.ReadOnly | QFile.Text)) contents = f.readAll() self.assertEqual(contents, "Foo \0bar for the win!") f.close() + """ if __name__ == '__main__': |