mirror of
https://github.com/python/cpython.git
synced 2025-08-01 23:53:15 +00:00
Whitespace normalization. Ugh, we really need to do this more often.
You might want to review this change as it's my first time. Be gentle. :-)
This commit is contained in:
parent
e47c508850
commit
0d4c06e06e
38 changed files with 386 additions and 387 deletions
|
@ -25,7 +25,7 @@ def server(evt):
|
|||
evt.set()
|
||||
|
||||
class GeneralTests(TestCase):
|
||||
|
||||
|
||||
def setUp(self):
|
||||
self.evt = threading.Event()
|
||||
threading.Thread(target=server, args=(self.evt,)).start()
|
||||
|
@ -38,13 +38,13 @@ class GeneralTests(TestCase):
|
|||
# connects
|
||||
smtp = smtplib.SMTP("localhost", 9091)
|
||||
smtp.sock.close()
|
||||
|
||||
|
||||
def testTimeoutDefault(self):
|
||||
# default
|
||||
smtp = smtplib.SMTP("localhost", 9091)
|
||||
self.assertTrue(smtp.sock.gettimeout() is None)
|
||||
smtp.sock.close()
|
||||
|
||||
|
||||
def testTimeoutValue(self):
|
||||
# a value
|
||||
smtp = smtplib.SMTP("localhost", 9091, timeout=30)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue