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 1
1
# -*- coding: utf-8 -*-
2
2
3
3
import unittest
4
- from unittest .mock import patch
5
4
6
5
from fluent import event , sender
7
6
from tests import mockserver
@@ -46,7 +45,7 @@ def test_no_last_error_on_successful_event(self):
46
45
sender .close ()
47
46
48
47
@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')
50
49
def test_connect_exception_during_event_send (self , mock_socket ):
51
50
# Make the socket.socket().connect() call raise a custom exception
52
51
mock_connect = mock_socket .socket .return_value .connect
Original file line number Diff line number Diff line change 3
3
from __future__ import print_function
4
4
import unittest
5
5
import socket
6
- from unittest .mock import patch
7
6
8
7
import fluent .sender
9
8
from tests import mockserver
@@ -86,7 +85,7 @@ def test_clear_last_error(self):
86
85
self .assertEqual (self ._sender .last_error , None )
87
86
88
87
@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')
90
89
def test_connect_exception_during_sender_init (self , mock_socket ):
91
90
# Make the socket.socket().connect() call raise a custom exception
92
91
mock_connect = mock_socket .socket .return_value .connect
You can’t perform that action at this time.
0 commit comments