File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed
Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change 11# -*- coding: utf-8 -*-
22
33import unittest
4- from unittest .mock import patch
54
65from fluent import event , sender
76from tests import mockserver
@@ -46,7 +45,7 @@ def test_no_last_error_on_successful_event(self):
4645 sender .close ()
4746
4847 @unittest .skip ("This test failed with 'TypeError: catching classes that do not inherit from BaseException is not allowed' so skipped" )
49- @patch ('fluent.sender.socket' )
48+ # @patch('fluent.sender.socket')
5049 def test_connect_exception_during_event_send (self , mock_socket ):
5150 # Make the socket.socket().connect() call raise a custom exception
5251 mock_connect = mock_socket .socket .return_value .connect
Original file line number Diff line number Diff line change 33from __future__ import print_function
44import unittest
55import socket
6- from unittest .mock import patch
76
87import fluent .sender
98from tests import mockserver
@@ -86,7 +85,7 @@ def test_clear_last_error(self):
8685 self .assertEqual (self ._sender .last_error , None )
8786
8887 @unittest .skip ("This test failed with 'TypeError: catching classes that do not inherit from BaseException is not allowed' so skipped" )
89- @patch ('fluent.sender.socket' )
88+ # @patch('fluent.sender.socket')
9089 def test_connect_exception_during_sender_init (self , mock_socket ):
9190 # Make the socket.socket().connect() call raise a custom exception
9291 mock_connect = mock_socket .socket .return_value .connect
You can’t perform that action at this time.
0 commit comments