Updated phonon modue to works with python 2.x and 3.x
This commit is contained in:
parent
de291d1d0f
commit
1874425448
2 changed files with 8 additions and 8 deletions
|
|
@ -11,7 +11,7 @@ def checkBackendCapabilities(func):
|
|||
if Phonon.BackendCapabilities.isMimeTypeAvailable('audio/x-wav'):
|
||||
func(self, *args, **kw)
|
||||
else:
|
||||
print 'Wav format not supported! Playback test skipped!'
|
||||
print('Wav format not supported! Playback test skipped!')
|
||||
return function
|
||||
|
||||
|
||||
|
|
@ -60,7 +60,7 @@ class TestSimplePlaying(UsesQCoreApplication):
|
|||
self.media.stateChanged['Phonon::State', 'Phonon::State'].connect(self.state_cb)
|
||||
self.media.play()
|
||||
self.app.exec_()
|
||||
self.assert_(self.called)
|
||||
self.assertTrue(self.called)
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue