File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -232,8 +232,8 @@ FTP objects
232
232
.. method :: FTP.voidcmd(cmd)
233
233
234
234
Send a simple command string to the server and handle the response. Return
235
- nothing if a response code corresponding to success (codes in the range
236
- 200--299) is received . Raise :exc: `error_reply ` otherwise.
235
+ the response string if the response code corresponds to success (codes in
236
+ the range 200--299). Raise :exc: `error_reply ` otherwise.
237
237
238
238
.. audit-event :: ftplib.sendcmd self,cmd ftplib.FTP.voidcmd
239
239
Original file line number Diff line number Diff line change @@ -543,8 +543,8 @@ def test_set_pasv(self):
543
543
self .assertFalse (self .client .passiveserver )
544
544
545
545
def test_voidcmd (self ):
546
- self .client .voidcmd ('echo 200' )
547
- self .client .voidcmd ('echo 299' )
546
+ self .assertEqual ( self . client .voidcmd ('echo 200' ), ' 200' )
547
+ self .assertEqual ( self . client .voidcmd ('echo 299' ), ' 299' )
548
548
self .assertRaises (ftplib .error_reply , self .client .voidcmd , 'echo 199' )
549
549
self .assertRaises (ftplib .error_reply , self .client .voidcmd , 'echo 300' )
550
550
You can’t perform that action at this time.
0 commit comments