]> granicus.if.org Git - python/commitdiff
Cleanup: remove not needed mocks.
authorAndrew Svetlov <andrew.svetlov@gmail.com>
Mon, 17 Dec 2012 17:27:10 +0000 (19:27 +0200)
committerAndrew Svetlov <andrew.svetlov@gmail.com>
Mon, 17 Dec 2012 17:27:10 +0000 (19:27 +0200)
Lib/test/test_smtplib.py

index 6fe2df96df7440b6b4bfc27e2d0972c0de2b9703..5a086c88f1708d3a246004e5397bad1a2db105f9 100644 (file)
@@ -524,12 +524,6 @@ class DebuggingServerTests(unittest.TestCase):
 
 class NonConnectingTests(unittest.TestCase):
 
-    def setUp(self):
-        smtplib.socket = mock_socket
-
-    def tearDown(self):
-        smtplib.socket = socket
-
     def testNotConnected(self):
         # Test various operations on an unconnected SMTP object that
         # should raise exceptions (at present the attempt in SMTP.send