Open GoogleCodeExporter opened 9 years ago
with this patch, it works fine
Original comment by claus.kl...@googlemail.com
on 17 Dec 2012 at 4:39
Attachments:
You should try this with development version which AFAICT shouldn't have this
problem.
Original comment by g.rodola
on 18 Dec 2012 at 11:27
# XXX test_epsv_v4 (__main__.TestIPv6MixedEnvironment) ... Exception in thread
Thread-131:
def test_epsv_v4(self):
mlstline = lambda cmd: self.client.voidcmd(cmd).split('\n')[1]
self.client = self.client_class()
self.client.connect('127.0.0.1', self.server.port)
self.client.sock.settimeout(2)
self.client.login(USER, PASSWD)
host, port = ftplib.parse229(self.client.sendcmd('EPSV'),
self.client.sock.getpeername())
self.assertEqual('127.0.0.1', host)
# test connection
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.settimeout(2)
s.connect((host, port))
self.assertTrue(mlstline('mlst /').endswith('/'))
s.close()
# I add this test to show the error
Original comment by claus.kl...@googlemail.com
on 19 Dec 2012 at 7:53
with development version it works better:
test_eprt_v4 (__main__.TestIPv6MixedEnvironment) ... ERROR
test_epsv_v4 (__main__.TestIPv6MixedEnvironment) ... ok
test_pasv_v4 (__main__.TestIPv6MixedEnvironment) ... ok
test_port_v4 (__main__.TestIPv6MixedEnvironment) ... ok
======================================================================
ERROR: test_oob_abor (__main__.TestFtpAbort)
----------------------------------------------------------------------
Traceback (most recent call last):
File "test_ftpd.py", line 2007, in test_oob_abor
self.assertEqual(self.client.getresp()[:3], '225')
File "/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/ftplib.py", line 220, in getresp
raise error_perm(resp)
ftplib.error_perm: 500 Command "\xef\xbf\xbdOR" not understood.
======================================================================
ERROR: test_eprt_v4 (__main__.TestIPv6MixedEnvironment)
----------------------------------------------------------------------
Traceback (most recent call last):
File "test_ftpd.py", line 2964, in test_eprt_v4
self.client.sendcmd('eprt |1|%s|%s|' % (ip, port))
File "/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/ftplib.py", line 245, in sendcmd
return self.getresp()
File "/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/ftplib.py", line 220, in getresp
raise error_perm(resp)
ftplib.error_perm: 522 Network protocol not supported (use 2).
----------------------------------------------------------------------
Ran 146 tests in 4.374s
FAILED (errors=2)
Original comment by claus.kl...@googlemail.com
on 19 Dec 2012 at 7:59
What's the status on this if you try latest r1145?
Original comment by g.rodola
on 5 Jan 2013 at 6:10
Original issue reported on code.google.com by
claus.kl...@googlemail.com
on 17 Dec 2012 at 4:37