Updated phonon modue to works with python 2.x and 3.x

This commit is contained in:
Renato Filho 2011-10-06 11:42:28 -03:00 • committed by Hugo Parente Lima
commit 1874425448
2 changed files with 8 additions and 8 deletions

View file

@ -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__':