aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside6/tests/QtTextToSpeech/qtexttospeech_test.py
diff options
context:
space:
mode:
Diffstat (limited to 'sources/pyside6/tests/QtTextToSpeech/qtexttospeech_test.py')
-rw-r--r--sources/pyside6/tests/QtTextToSpeech/qtexttospeech_test.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/sources/pyside6/tests/QtTextToSpeech/qtexttospeech_test.py b/sources/pyside6/tests/QtTextToSpeech/qtexttospeech_test.py
index 53e0c4cc4..6ff66c047 100644
--- a/sources/pyside6/tests/QtTextToSpeech/qtexttospeech_test.py
+++ b/sources/pyside6/tests/QtTextToSpeech/qtexttospeech_test.py
@@ -16,6 +16,7 @@ init_test_paths(False)
from helper.usesqapplication import UsesQApplication
from PySide6.QtCore import QTimer
+from PySide6.QtWidgets import QApplication
try:
from PySide6.QtTextToSpeech import QTextToSpeech, QVoice
@@ -28,6 +29,8 @@ class QTextToSpeechTestCase(UsesQApplication):
'''Tests related to QTextToSpeech'''
def testSay(self):
engines = QTextToSpeech.availableEngines()
+ if len(engines) > 1 and engines[0] == "mock":
+ engines[0], engines[1] = engines[1], engines[0]
if not engines:
print('No QTextToSpeech engines available')
else: