aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside2/tests
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2020-09-04 16:11:09 +0200
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2020-09-04 16:11:09 +0200
commit704d3aab0f25d6b0d2939f1bb4e95ca73861ca9c (patch)
tree69680c1ce0a1a296aa1ed78fdbff30f583172e67 /sources/pyside2/tests
parentd6d31c5c277d30080a6b92de3774460048dcf49e (diff)
parentfedc289138bd912384e71a91e49ef9ee7b8a0fbb (diff)
Merge remote-tracking branch 'origin/5.15' into dev
Diffstat (limited to 'sources/pyside2/tests')
-rw-r--r--sources/pyside2/tests/QtCore/qprocess_test.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/sources/pyside2/tests/QtCore/qprocess_test.py b/sources/pyside2/tests/QtCore/qprocess_test.py
index 2e0ad3807..daaf0843b 100644
--- a/sources/pyside2/tests/QtCore/qprocess_test.py
+++ b/sources/pyside2/tests/QtCore/qprocess_test.py
@@ -48,13 +48,14 @@ class TestQProcess (unittest.TestCase):
def testPid(self):
p = QProcess()
- p.start("dir")
+ p.start("dir", [])
p.waitForStarted()
pid = p.pid()
# We can't test the pid method result because it returns 0 when the
# process isn't running
if p.state() == QProcess.Running:
self.assertNotEqual(pid, 0)
+ p.waitForFinished()
else:
print("PROCESS ALREADY DEAD :-/")