mirror of https://github.com/python/cpython.git
Cleanup: remove not needed mocks.
This commit is contained in:
parent
2ade6f24cb
commit
69d03c4799
|
@ -524,12 +524,6 @@ def testSendMessageMultipleResentRaises(self):
|
||||||
|
|
||||||
class NonConnectingTests(unittest.TestCase):
|
class NonConnectingTests(unittest.TestCase):
|
||||||
|
|
||||||
def setUp(self):
|
|
||||||
smtplib.socket = mock_socket
|
|
||||||
|
|
||||||
def tearDown(self):
|
|
||||||
smtplib.socket = socket
|
|
||||||
|
|
||||||
def testNotConnected(self):
|
def testNotConnected(self):
|
||||||
# Test various operations on an unconnected SMTP object that
|
# Test various operations on an unconnected SMTP object that
|
||||||
# should raise exceptions (at present the attempt in SMTP.send
|
# should raise exceptions (at present the attempt in SMTP.send
|
||||||
|
|
Loading…
Reference in New Issue