[Python-checkins] Python Regression Test Failures all (1)

Facundo Batista facundobatista at gmail.com
Thu Apr 26 16:34:38 CEST 2007


2007/4/26, Neal Norwitz <nnorwitz at gmail.com>:

> ...
> test_ftplib
> test test_ftplib failed -- Traceback (most recent call last):
>   File "/tmp/python-test/local/lib/python2.6/test/test_ftplib.py", line 59, in testTimeoutConnect
>     ftp.connect("localhost", timeout=30)
>   File "/tmp/python-test/local/lib/python2.6/ftplib.py", line 129, in connect
>     self.sock = socket.create_connection((self.host, self.port), self.timeout)
>   File "/tmp/python-test/local/lib/python2.6/socket.py", line 443, in create_connection
>     raise error, msg
> error: (111, 'Connection refused')
>
> ...
>
> test_telnetlib
> test test_telnetlib failed -- Traceback (most recent call last):
>   File "/tmp/python-test/local/lib/python2.6/test/test_telnetlib.py", line 41, in testTimeoutDefault
>     telnet = telnetlib.Telnet("localhost", 9091)
>   File "/tmp/python-test/local/lib/python2.6/telnetlib.py", line 209, in __init__
>     self.open(host, port, timeout)
>   File "/tmp/python-test/local/lib/python2.6/telnetlib.py", line 227, in open
>     self.sock = socket.create_connection((host, port), self.timeout)
>   File "/tmp/python-test/local/lib/python2.6/socket.py", line 443, in create_connection
>     raise error, msg
> error: (111, 'Connection refused')

Very, very strange.

I rerun the tests in my machine, like:

facundo at expiron: .../trunk$ ./python -O Lib/test/regrtest.py -u network

And the result is:

294 tests OK.
4 tests failed:
    test_descr test_timeout test_urllib2net test_urllibnet
29 tests skipped:
    test_aepack test_al test_applesingle test_bsddb185 test_bsddb3
    test_cd test_cl test_codecmaps_cn test_codecmaps_hk
    test_codecmaps_jp test_codecmaps_kr test_codecmaps_tw test_curses
    test_gl test_imgfile test_linuxaudiodev test_macfs test_macostools
    test_normalization test_ossaudiodev test_pep277 test_plistlib
    test_scriptpackages test_startfile test_sunaudiodev test_tcl
    test_winreg test_winsound test_zipfile64
1 skip unexpected on linux2:
    test_tcl

Without the "-u network", only fails test_descr.

Which errors we had here?:

test test_timeout failed -- Traceback (most recent call last):
  File "/home/facundo/devel/reps/python/trunk/Lib/test/test_timeout.py",
line 128, in testConnectTimeout
    %(_delta, self.fuzz, _timeout))
AssertionError: timeout (5.25138) is more than 2 seconds more than
expected (0.001)

test test_urllib2net failed -- Traceback (most recent call last):
  File "/home/facundo/devel/reps/python/trunk/Lib/test/test_urllib2net.py",
line 147, in test_bad_address
    urllib2.urlopen, "http://www.python.invalid./")
AssertionError: IOError not raised

test_urllibnet
test test_urllibnet failed -- Traceback (most recent call last):
  File "/home/facundo/devel/reps/python/trunk/Lib/test/test_urllibnet.py",
line 113, in test_bad_address
    urllib.urlopen, "http://www.python.invalid./")
AssertionError: IOError not raised

The last two are not errors at all, just OpenDNS returning me name
searches, and not an error.

The timeout is strange, never happened to me before... And see that
here ftplib and telnetlib worked ok...

Anybody else is seen this kind of spurious errors?

Regards,

-- 
.    Facundo

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


More information about the Python-checkins mailing list