diff options
author | Matthew Hughes <34972397+matthewhughes934@users.noreply.github.com> | 2024-02-17 11:57:51 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-17 11:57:51 (GMT) |
commit | e88ebc1c4028cf2f0db43659e513440257eaec01 (patch) | |
tree | 3281409b0519042e1297d86b211effc0f0202b2a /Lib/test | |
parent | 26800cf25a0970d46934fa9a881c0ef6881d642b (diff) | |
download | cpython-e88ebc1c4028cf2f0db43659e513440257eaec01.zip cpython-e88ebc1c4028cf2f0db43659e513440257eaec01.tar.gz cpython-e88ebc1c4028cf2f0db43659e513440257eaec01.tar.bz2 |
gh-97590: Update docs and tests for ftplib.FTP.voidcmd() (GH-96825)
Since 2f3941d743481ac48628b8b2c075f2b82762050b this function returns the
response string, rather than nothing.
Diffstat (limited to 'Lib/test')
-rw-r--r-- | Lib/test/test_ftplib.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_ftplib.py b/Lib/test/test_ftplib.py index 81115e9..bed0e6d 100644 --- a/Lib/test/test_ftplib.py +++ b/Lib/test/test_ftplib.py @@ -543,8 +543,8 @@ class TestFTPClass(TestCase): self.assertFalse(self.client.passiveserver) def test_voidcmd(self): - self.client.voidcmd('echo 200') - self.client.voidcmd('echo 299') + self.assertEqual(self.client.voidcmd('echo 200'), '200') + self.assertEqual(self.client.voidcmd('echo 299'), '299') self.assertRaises(ftplib.error_reply, self.client.voidcmd, 'echo 199') self.assertRaises(ftplib.error_reply, self.client.voidcmd, 'echo 300') |