summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHugo Parente Lima <hugo.pl@gmail.com>2011-10-31 16:29:09 -0200
committerHugo Parente Lima <hugo.pl@gmail.com>2011-10-31 16:29:09 -0200
commit0c7399f821843326510b9cdb2c4d967fc2ea64a4 (patch)
tree5bac9a9e966417f92537b9afe7f43ef42473c737
parentc69816294f1905ff3ebceb7fa7f1b15d0e73c6c7 (diff)
downloadpyside-0c7399f821843326510b9cdb2c4d967fc2ea64a4.tar.gz
pyside-0c7399f821843326510b9cdb2c4d967fc2ea64a4.tar.xz
pyside-0c7399f821843326510b9cdb2c4d967fc2ea64a4.zip
Fix phonon unit test when there are device aliases reported by phonon.
-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 b1e0070..217ffa7 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()