aboutsummaryrefslogtreecommitdiffstats
path: root/tests/QtCore/qprocess_test.py
diff options
context:
space:
mode:
authorRenato Filho <renato.filho@openbossa.org>2011-10-03 18:49:42 -0300
committerHugo Parente Lima <hugo.pl@gmail.com>2012-03-08 16:56:08 -0300
commit1e29ab65924166688e352eaaa099ad571a980c4f (patch)
tree2a7ae3cb38b33a3211c9cec0da70016dd5d44c1d /tests/QtCore/qprocess_test.py
parenta2cb6fe0254a122f0ad9d2ee991d9a249903ee12 (diff)
Initia QtCore port to python3.
Diffstat (limited to 'tests/QtCore/qprocess_test.py')
-rw-r--r--tests/QtCore/qprocess_test.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/QtCore/qprocess_test.py b/tests/QtCore/qprocess_test.py
index 19d47f68a..96a6b793e 100644
--- a/tests/QtCore/qprocess_test.py
+++ b/tests/QtCore/qprocess_test.py
@@ -3,14 +3,15 @@
import unittest
import os
+import py3kcompat as py3k
from PySide.QtCore import *
class TestQProcess (unittest.TestCase):
def testStartDetached(self):
value, pid = QProcess.startDetached("dir", [], os.getcwd())
- self.assert_(isinstance(value, bool))
- self.assert_(isinstance(pid, long))
+ self.assertTrue(isinstance(value, bool))
+ self.assertTrue(isinstance(pid, py3k.long))
def testPid(self):
p = QProcess()
@@ -22,7 +23,7 @@ class TestQProcess (unittest.TestCase):
if p.state() == QProcess.Running:
self.assertNotEqual(pid, 0)
else:
- print "PROCESS ALREADY DEAD :-/"
+ print("PROCESS ALREADY DEAD :-/")
if __name__ == '__main__':
unittest.main()