[Python-checkins] cpython: Cleanup: remove not needed mocks.

andrew.svetlov python-checkins at python.org
Mon Dec 17 18:27:19 CET 2012


http://hg.python.org/cpython/rev/1bd6563be3e4
changeset: 80915:1bd6563be3e4
parent: 80912:ddf0fbff94d8
user: Andrew Svetlov <andrew.svetlov at gmail.com>
date: Mon Dec 17 19:27:10 2012 +0200
summary:
 Cleanup: remove not needed mocks.
files:
 Lib/test/test_smtplib.py | 6 ------
 1 files changed, 0 insertions(+), 6 deletions(-)
diff --git a/Lib/test/test_smtplib.py b/Lib/test/test_smtplib.py
--- a/Lib/test/test_smtplib.py
+++ b/Lib/test/test_smtplib.py
@@ -524,12 +524,6 @@
 
 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
-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /