Fix mock check with Python 3.5
Looks like .assert_not_called() doesn't work on function mocks with 3.5.
This commit is contained in:
parent
459bbc3a6f
commit
e8ceeceac8
@ -151,7 +151,7 @@ def test_late_init(init_patch, monkeypatch, fake_save_manager, fake_args,
|
||||
assert text.startswith('Errors occurred while reading config.py:')
|
||||
assert '<b>Error text</b>: Exception' in text
|
||||
else:
|
||||
msgbox_mock.assert_not_called()
|
||||
assert not msgbox_mock.called
|
||||
|
||||
|
||||
class TestQtArgs:
|
||||
|
Loading…
Reference in New Issue
Block a user