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:
Florian Bruhin 2017-09-22 22:28:40 +02:00
parent 459bbc3a6f
commit e8ceeceac8

View File

@ -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: