Skip to content

Commit

Permalink
avoid using mock.assert_called (py 3.5)
Browse files Browse the repository at this point in the history
  • Loading branch information
de-code committed Apr 2, 2021
1 parent df2e37c commit 72b8be1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/tests_logging.py
Expand Up @@ -54,7 +54,7 @@ def test_should_call_handle_error_if_exception_was_thrown(self):
logger.handlers = [handler]
with patch.object(handler, 'handleError') as mock:
logger.info('test')
mock.assert_called()
assert mock.called

@pytest.mark.parametrize('exception_class', [
KeyboardInterrupt,
Expand Down

0 comments on commit 72b8be1

Please sign in to comment.