mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-04-29 01:23:16 +02:00
Nicer error messages when import Qt modules fail in the build tests
This commit is contained in:
parent
82e6a3937a
commit
6aad4c495e
1 changed files with 2 additions and 1 deletions
|
|
@ -179,7 +179,8 @@ def test_apsw(self):
|
|||
|
||||
@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):
|
||||
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
|
||||
# Ensure that images can be read before QApplication is constructed.
|
||||
# Note that this requires QCoreApplication.libraryPaths() to return the
|
||||
|
|
|
|||
Loading…
Reference in a new issue