mirror of
https://github.com/python/cpython.git
synced 2025-07-30 06:34: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
|
@ -24,7 +24,7 @@ def server(evt):
|
|||
evt.set()
|
||||
|
||||
class GeneralTests(TestCase):
|
||||
|
||||
|
||||
def setUp(self):
|
||||
ftplib.FTP.port = 9091
|
||||
self.evt = threading.Event()
|
||||
|
@ -41,13 +41,13 @@ class GeneralTests(TestCase):
|
|||
# connects
|
||||
ftp = ftplib.FTP("localhost")
|
||||
ftp.sock.close()
|
||||
|
||||
|
||||
def testTimeoutDefault(self):
|
||||
# default
|
||||
ftp = ftplib.FTP("localhost")
|
||||
self.assertTrue(ftp.sock.gettimeout() is None)
|
||||
ftp.sock.close()
|
||||
|
||||
|
||||
def testTimeoutValue(self):
|
||||
# a value
|
||||
ftp = ftplib.FTP("localhost", timeout=30)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue