aboutsummaryrefslogtreecommitdiffstats
path: root/tests/phonon/basic_playing_test.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/phonon/basic_playing_test.py')
-rw-r--r--tests/phonon/basic_playing_test.py10
1 files changed, 7 insertions, 3 deletions
diff --git a/tests/phonon/basic_playing_test.py b/tests/phonon/basic_playing_test.py
index 45f6c127b..4eb2ccdd7 100644
--- a/tests/phonon/basic_playing_test.py
+++ b/tests/phonon/basic_playing_test.py
@@ -38,9 +38,13 @@ class TestSimplePlaying(UsesQCoreApplication):
del self.source
def testFinishedSignal(self):
- # Should pass if finished() is called
- self.media.play()
- self.app.exec_()
+ # Check for ogg support before playing it
+ if (phonon.Phonon.BackendCapabilities.isMimeTypeAvailable('audio/ogg')):
+ # Should pass if finished() is called
+ self.media.play()
+ self.app.exec_()
+ else:
+ print 'Ogg format not supported! Playback test skipped!'
def testMediaSource(self):
self.assertEqual(self.media.currentSource(), self.source)