Skipping testing audio outputs in qt multimedia on non CI Linux systems

It hangs on some systems, sigh.
This commit is contained in:
Kovid Goyal 2025-12-11 21:16:55 +05:30
parent f757790ecb
commit b21cbc55fd
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -380,7 +380,9 @@ class BuildTest(unittest.TestCase):
available_tts_engines = tuple(x for x in QTextToSpeech.availableEngines() if x != 'mock')
self.assertTrue(available_tts_engines)
QMediaDevices.audioOutputs()
if not islinux or is_ci:
# On some Linux systems this hangs when using the headless backend
QMediaDevices.audioOutputs()
from calibre.ebooks.oeb.transforms.rasterize import rasterize_svg
img = rasterize_svg(as_qimage=True)