Eliminate test interference from webkit history.
Initializing the qtwebkit history backend left some global state that was leaking into other tests.
This commit is contained in:
parent
21757a96a3
commit
d658378af3
@ -362,3 +362,6 @@ def test_init(backend, qapp, tmpdir, monkeypatch):
|
||||
assert default_interface is None
|
||||
|
||||
objreg.delete('web-history')
|
||||
if backend == usertypes.Backend.QtWebKit:
|
||||
# prevent interference with future tests
|
||||
QWebHistoryInterface.setDefaultInterface(None)
|
||||
|
Loading…
Reference in New Issue
Block a user