aboutsummaryrefslogtreecommitdiffstats
path: root/tests/phonon/bug_786.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/phonon/bug_786.py')
-rw-r--r--tests/phonon/bug_786.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/phonon/bug_786.py b/tests/phonon/bug_786.py
index b1e0070ad..217ffa722 100644
--- a/tests/phonon/bug_786.py
+++ b/tests/phonon/bug_786.py
@@ -7,9 +7,11 @@ class TestBug786 (unittest.TestCase):
def testIt(self):
app = QApplication([])
+ app.setApplicationName("PySide Phonon Unit Test")
devices = Phonon.BackendCapabilities.availableAudioOutputDevices()
if len(devices) > 1:
- self.assertNotEqual(devices[0], devices[1])
+ if devices[0].index() != devices[0].index():
+ self.assertNotEqual(devices[0], devices[1])
self.assertEqual(devices[0], devices[0])
effects = Phonon.BackendCapabilities.availableAudioEffects()