Fix no-cover pragma

This commit is contained in:
Florian Bruhin 2017-04-25 06:43:31 +02:00
parent 111944fb65
commit 3125b69d19

View File

@ -54,8 +54,8 @@ class DiskCache(QNetworkDiskCache):
if size is None:
size = 1024 * 1024 * 50 # default from QNetworkDiskCachePrivate
# WORKAROUND for https://bugreports.qt.io/browse/QTBUG-59909
if (qtutils.version_check('5.7.1') and # pragma: no cover
not qtutils.version_check('5.9')):
if (qtutils.version_check('5.7.1') and
not qtutils.version_check('5.9')): # pragma: no cover
size = 0
self.setMaximumCacheSize(size)