[prev in list] [next in list] [prev in thread] [next in thread] 

List:       python-dev
Subject:    Re: [Python-Dev] python/trunk/Lib/test/test_urllib.py (for
From:       Facundo Batista <facundo () taniquetil ! com ! ar>
Date:       2007-05-28 19:41:37
Message-ID: f3fb9g$top$1 () sea ! gmane ! org
[Download RAW message or body]

ocean wrote:


> After I did this change, most errors were gone.
>
> Index: Lib/urllib.py
> ===================================================================
> --- Lib/urllib.py (revision 55584)
> +++ Lib/urllib.py (working copy)
> @@ -833,7 +833,7 @@
>          self.busy = 0
>          self.ftp = ftplib.FTP()
>          self.ftp.connect(self.host, self.port, self.timeout)
> -        self.ftp.login(self.user, self.passwd)
> +#        self.ftp.login(self.user, self.passwd)
>          for dir in self.dirs:
>              self.ftp.cwd(dir)
>
> I don't know, but probably 'login' on Win2000 is problamatic.

But you can *not* do this, you're trimming functionality from this
class.

The test that I left commented out in test_urllib.py just tries to
simulate the first two FTP server answers, one saying "hello", and the
other asking for the user.

This is just to test ftpwrapper in its more basic first steps. The
simulation goes ok in linux, but not in windows. But the problem is
clearly in the tests, even if I can not find it, not in the
urllib module. 

Regards,

-- 
.   Facundo
.
Blog: http://www.taniquetil.com.ar/plog/
PyAr: http://www.python.org/ar/


_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: http://mail.python.org/mailman/options/python-dev/python-dev%40progressive-comp.com
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic