mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Nicer error messages when import Qt modules fail in the build tests
This commit is contained in:
parent
82e6a3937a
commit
6aad4c495e
@ -179,7 +179,8 @@ class BuildTest(unittest.TestCase):
|
|||||||
|
|
||||||
@unittest.skipIf('SKIP_QT_BUILD_TEST' in os.environ, 'Skipping Qt build test as it causes crashes in the macOS VM')
|
@unittest.skipIf('SKIP_QT_BUILD_TEST' in os.environ, 'Skipping Qt build test as it causes crashes in the macOS VM')
|
||||||
def test_qt(self):
|
def test_qt(self):
|
||||||
from PyQt5.Qt import QImageReader, QNetworkAccessManager, QFontDatabase
|
from PyQt5.QtGui import QImageReader, QFontDatabase
|
||||||
|
from PyQt5.QtNetwork import QNetworkAccessManager
|
||||||
from calibre.utils.img import image_from_data, image_to_data, test
|
from calibre.utils.img import image_from_data, image_to_data, test
|
||||||
# Ensure that images can be read before QApplication is constructed.
|
# Ensure that images can be read before QApplication is constructed.
|
||||||
# Note that this requires QCoreApplication.libraryPaths() to return the
|
# Note that this requires QCoreApplication.libraryPaths() to return the
|
||||||
|
Loading…
x
Reference in New Issue
Block a user