Fix test_history for python < 3.6.
Mock.assert_called is only in python 3.6. For earlier versions we must use `assert m.called`. Weird errors only appearing in CI, trying to debug...
This commit is contained in:
parent
e201a42383
commit
87643040a4
@ -122,7 +122,7 @@ def test_clear(qtbot, tmpdir, hist, mocker):
|
||||
|
||||
m = mocker.patch('qutebrowser.browser.history.message.confirm_async')
|
||||
hist.clear()
|
||||
m.assert_called()
|
||||
assert m.called
|
||||
|
||||
|
||||
def test_clear_force(qtbot, tmpdir, hist):
|
||||
|
Loading…
Reference in New Issue
Block a user