summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_smtplib.py
diff options
context:
space:
mode:
authorAndrew Svetlov <andrew.svetlov@gmail.com>2012-12-17 17:27:10 (GMT)
committerAndrew Svetlov <andrew.svetlov@gmail.com>2012-12-17 17:27:10 (GMT)
commit69d03c4799ade6202e44f4a39331ae26524c932b (patch)
treee59c8d4ccf770e206ece84399320bf7434e54fb1 /Lib/test/test_smtplib.py
parent2ade6f24cb4ac21b9da36b0e1ce7414463c9f5d5 (diff)
downloadcpython-69d03c4799ade6202e44f4a39331ae26524c932b.zip
cpython-69d03c4799ade6202e44f4a39331ae26524c932b.tar.gz
cpython-69d03c4799ade6202e44f4a39331ae26524c932b.tar.bz2
Cleanup: remove not needed mocks.
Diffstat (limited to 'Lib/test/test_smtplib.py')
-rw-r--r--Lib/test/test_smtplib.py6
1 files changed, 0 insertions, 6 deletions
diff --git a/Lib/test/test_smtplib.py b/Lib/test/test_smtplib.py
index 6fe2df9..5a086c8 100644
--- a/Lib/test/test_smtplib.py
+++ b/Lib/test/test_smtplib.py
@@ -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