diff options
author | Hugo Parente Lima <hugo.pl@gmail.com> | 2011-10-31 16:29:09 -0200 |
---|---|---|
committer | Hugo Parente Lima <hugo.pl@gmail.com> | 2012-03-08 16:56:16 -0300 |
commit | b30e998e659d8e3a0d84fec1b7f2bd3cb0ac55b4 (patch) | |
tree | 4212f630def56c871855f105ff66b2a174c7b995 /tests/phonon | |
parent | c230fad4271e04875191c226d3fdd612529ca263 (diff) |
Fix phonon unit test when there are device aliases reported by phonon.
Diffstat (limited to 'tests/phonon')
-rw-r--r-- | tests/phonon/bug_786.py | 4 |
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() |