8000 Remove unnecessary import · dotlambda/fluent-logger-python@046bdf7 · GitHub
[go: up one dir, main page]

Skip to content

Commit 046bdf7

Browse files
committed
Remove unnecessary import
1 parent 28997a8 commit 046bdf7

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

tests/test_event.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# -*- coding: utf-8 -*-
22

33
import unittest
4-
from unittest.mock import patch
54

65
from fluent import event, sender
76
from 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

tests/test_sender.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
from __future__ import print_function
44
import unittest
55
import socket
6-
from unittest.mock import patch
76

87
import fluent.sender
98
from 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

0 commit comments

Comments
 (0)
0