mirror of
https://github.com/python/cpython.git
synced 2025-08-28 20:56:54 +00:00
#3911 FTP.makeport was giving bad port numbers
reviewed by Benjamin and Antoine
This commit is contained in:
parent
be17a11721
commit
3a53fbbfcf
3 changed files with 4 additions and 2 deletions
|
@ -348,7 +348,7 @@ class TestFTPClass(TestCase):
|
|||
self.client.dir(lambda x: l.append(x))
|
||||
self.assertEqual(''.join(l), LIST_DATA.replace('\r\n', ''))
|
||||
|
||||
def Xtest_makeport(self):
|
||||
def test_makeport(self):
|
||||
self.client.makeport()
|
||||
# IPv4 is in use, just make sure send_eprt has not been used
|
||||
self.assertEqual(self.server.handler.last_received_cmd, 'port')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue