From 1639e4a05853fb7d2000538b8843ad9bf86055a3 Mon Sep 17 00:00:00 2001 From: Yury Selivanov Date: Wed, 3 Feb 2016 18:37:27 -0500 Subject: [PATCH] Fix tests --- tests/test_base.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/test_base.py b/tests/test_base.py index a5251b4..13c92b5 100644 --- a/tests/test_base.py +++ b/tests/test_base.py @@ -214,7 +214,7 @@ class _TestBase: self.loop.run_forever() log.assert_called_with( self.mock_pattern('Exception in callback.*zero'), - exc_info=(ZeroDivisionError, mock.ANY, mock.ANY)) + exc_info=mock.ANY) # Test call_later (events.TimerHandle) with mock.patch.object(logger, 'error') as log: @@ -224,7 +224,7 @@ class _TestBase: self.loop.run_forever() log.assert_called_with( self.mock_pattern('Exception in callback.*zero'), - exc_info=(ZeroDivisionError, mock.ANY, mock.ANY)) + exc_info=mock.ANY) def test_set_exc_handler_custom(self): logger = logging.getLogger('asyncio') @@ -253,7 +253,7 @@ class _TestBase: run_loop() log.assert_called_with( self.mock_pattern('Exception in callback.*zero'), - exc_info=(ZeroDivisionError, mock.ANY, mock.ANY)) + exc_info=mock.ANY) self.assertEqual(len(errors), 1) @@ -278,7 +278,7 @@ class _TestBase: run_loop() log.assert_called_with( self.mock_pattern('Unhandled error in exception handler'), - exc_info=(AttributeError, mock.ANY, mock.ANY)) + exc_info=mock.ANY) def test_default_exc_handler_broken(self): logger = logging.getLogger('asyncio')