Fix phonon unit test when there are device aliases reported by phonon.
This commit is contained in:
parent
c230fad427
commit
b30e998e65
1 changed files with 3 additions and 1 deletions
|
|
@ -7,9 +7,11 @@ class TestBug786 (unittest.TestCase):
|
||||||
|
|
||||||
def testIt(self):
|
def testIt(self):
|
||||||
app = QApplication([])
|
app = QApplication([])
|
||||||
|
app.setApplicationName("PySide Phonon Unit Test")
|
||||||
devices = Phonon.BackendCapabilities.availableAudioOutputDevices()
|
devices = Phonon.BackendCapabilities.availableAudioOutputDevices()
|
||||||
if len(devices) > 1:
|
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])
|
self.assertEqual(devices[0], devices[0])
|
||||||
|
|
||||||
effects = Phonon.BackendCapabilities.availableAudioEffects()
|
effects = Phonon.BackendCapabilities.availableAudioEffects()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue