aboutsummaryrefslogtreecommitdiffstats
path: root/sources
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2017-07-19 09:27:09 +0200
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2017-07-20 10:23:24 +0000
commit820934d8838fbcc026f96b8c7aa33c9dc3b99da8 (patch)
tree4109ad608d039df19b5de0167bd47901f8a23324 /sources
parent6460ab0b2a2d2e7167c9bf5977f76db1b7592aa7 (diff)
audio_test.py: Use QGuiApplication
On Windows, the WASAPI audio plugin is used, which requires CoInitialize() and hence QGuiApplication. Change-Id: Iad045224b6153a08234ff69e69eb8d1986654b43 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'sources')
-rw-r--r--sources/pyside2/tests/QtMultimedia/audio_test.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/sources/pyside2/tests/QtMultimedia/audio_test.py b/sources/pyside2/tests/QtMultimedia/audio_test.py
index 66db5e1e..dff65dc5 100644
--- a/sources/pyside2/tests/QtMultimedia/audio_test.py
+++ b/sources/pyside2/tests/QtMultimedia/audio_test.py
@@ -30,10 +30,11 @@
import unittest
+from helper import UsesQGuiApplication
from PySide2.QtCore import *
from PySide2.QtMultimedia import *
-class testAudioDevices(unittest.TestCase):
+class testAudioDevices(UsesQGuiApplication):
def testListDevices(self):
valid = False