Only disable the cache on Qt 5.7.1
I ended up bisecting it, and https://codereview.qt-project.org/#/c/153977/ causes this, which is not in 5.7.0.
This commit is contained in:
parent
2eb365b146
commit
0de3b5460e
@ -54,7 +54,7 @@ class DiskCache(QNetworkDiskCache):
|
|||||||
if size is None:
|
if size is None:
|
||||||
size = 1024 * 1024 * 50 # default from QNetworkDiskCachePrivate
|
size = 1024 * 1024 * 50 # default from QNetworkDiskCachePrivate
|
||||||
# WORKAROUND for https://bugreports.qt.io/browse/QTBUG-59909
|
# WORKAROUND for https://bugreports.qt.io/browse/QTBUG-59909
|
||||||
if qtutils.version_check('5.7'): # pragma: no cover
|
if qtutils.version_check('5.7.1'): # pragma: no cover
|
||||||
size = 0
|
size = 0
|
||||||
self.setMaximumCacheSize(size)
|
self.setMaximumCacheSize(size)
|
||||||
|
|
||||||
|
@ -25,9 +25,9 @@ from qutebrowser.browser.webkit import cache
|
|||||||
from qutebrowser.utils import qtutils
|
from qutebrowser.utils import qtutils
|
||||||
|
|
||||||
|
|
||||||
pytestmark = pytest.mark.skipif(qtutils.version_check('5.7'),
|
pytestmark = pytest.mark.skipif(qtutils.version_check('5.7.1'),
|
||||||
reason="QNetworkDiskCache is broken on Qt >= "
|
reason="QNetworkDiskCache is broken on Qt >= "
|
||||||
"5.7")
|
"5.7.1")
|
||||||
|
|
||||||
|
|
||||||
def preload_cache(cache, url='http://www.example.com/', content=b'foobar'):
|
def preload_cache(cache, url='http://www.example.com/', content=b'foobar'):
|
||||||
|
Loading…
Reference in New Issue
Block a user