[Python-checkins] r80236 - python/trunk/Lib/test/test_urllib2net.py

R. David Murray rdmurray at bitdance.com
Wed Apr 21 02:26:51 CEST 2010


On Tue, 20 Apr 2010 08:54:59 +0200, senthil.kumaran <python-checkins at python.org> wrote:
> Author: senthil.kumaran
> Date: Tue Apr 20 08:54:59 2010
> New Revision: 80236
> 
> Log:
> Fix Issue8460: Victor's patch to add timeout in test_urllib2net test_urls.
[...]
> +                try:
> +                    with test_support.transient_internet():
> +                        buf = f.read()
> +                        debug("read %d bytes" % len(buf))
> +                except socket.timeout:
> +                    print >>sys.stderr, "<timeout: %s>" % url
>                  f.close()
> -                debug("read %d bytes" % len(buf))
>              debug("******** next url coming up...")
>              time.sleep(0.1)

Is the deletion of the debug statement intentional?

--
R. David Murray                                      www.bitdance.com


More information about the Python-checkins mailing list