Skip to content

Commit

Permalink
Fixed unit tests for Python 3.5
Browse files Browse the repository at this point in the history
Mock.assert_called_once() is only available in Python 3.6 and later
  • Loading branch information
phw committed Nov 30, 2020
1 parent de31bf2 commit 13a56d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/test_ui_mainwindow.py
Expand Up @@ -39,7 +39,7 @@ def test_run_onexit(self):
context = IgnoreSelectionContext(onexit=onexit)
with context:
onexit.assert_not_called()
onexit.assert_called_once()
onexit.assert_called_once_with()

def test_nested_with(self):
context = IgnoreSelectionContext()
Expand Down

0 comments on commit 13a56d6

Please sign in to comment.