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

Neal Norwitz nnorwitz at gmail.com
Fri Dec 10 10:39:21 CET 2010


341 tests OK.
1 test failed:
    test_urllib2
42 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_epoll test_gdb test_gl test_imgfile test_ioctl test_kqueue
    test_linuxaudiodev test_macos test_macostools test_multiprocessing
    test_ossaudiodev test_pep277 test_py3kwarn test_scriptpackages
    test_smtpnet test_socketserver test_startfile test_sunaudiodev
    test_tcl test_timeout test_tk test_ttk_guionly test_ttk_textonly
    test_unicode_file test_urllib2net test_urllibnet test_winreg
    test_winsound test_zipfile64
12 skips unexpected on linux2:
    test_codecmaps_cn test_codecmaps_hk test_codecmaps_jp
    test_codecmaps_kr test_codecmaps_tw test_epoll test_gdb test_ioctl
    test_multiprocessing test_tk test_ttk_guionly test_ttk_textonly

== CPython 2.7 (trunk:87154M, Dec 10 2010, 04:02:07) [GCC 3.3.4 20040623 (Gentoo Linux 3.3.4-r1, ssp-3.3.2-2, pie-8.7.6)]
==   Linux-2.6.9-gentoo-r1-i686-AMD_Athlon-tm-_XP_3000+-with-gentoo-1.4.16 little-endian
==   /tmp/test_python_31898
test_grammar
test_opcodes
test_dict
test_builtin
test_exceptions
test_types
test_unittest
test_doctest
test_doctest2
test_MimeWriter
test_SimpleHTTPServer
test_StringIO
test___all__
test___future__
test__locale
test_abc
test_abstract_numbers
test_aepack
test_aepack skipped -- No module named aetypes
test_aifc
test_al
test_al skipped -- No module named al
test_anydbm
test_applesingle
test_applesingle skipped -- No module named MacOS
test_argparse
test_array
test_ascii_formatd
test_ast
test_asynchat
test_asyncore
test_atexit
test_audioop
test_augassign
test_base64
test_bastion
test_bigaddrspace
test_bigmem
test_binascii
test_binhex
test_binop
test_bisect
test_bool
test_bsddb
test_bsddb185
test_bsddb185 skipped -- No module named bsddb185
test_bsddb3
test_bsddb3 skipped -- Use of the `bsddb' resource not enabled
test_buffer
test_bufio
test_bytes
test_bz2
test_calendar
test_call
test_capi
test_cd
test_cd skipped -- No module named cd
test_cfgparser
test_cgi
test_charmapcodec
test_cl
test_cl skipped -- No module named cl
test_class
test_cmath
test_cmd
test_cmd_line
test_cmd_line_script
test_code
test_codeccallbacks
test_codecencodings_cn
test_codecencodings_hk
test_codecencodings_jp
test_codecencodings_kr
test_codecencodings_tw
test_codecmaps_cn
	fetching http://source.icu-project.org/repos/icu/data/trunk/charset/data/xml/gb-18030-2000.xml ...
test_codecmaps_cn skipped -- Could not retrieve http://source.icu-project.org/repos/icu/data/trunk/charset/data/xml/gb-18030-2000.xml
test_codecmaps_hk
	fetching http://people.freebsd.org/~perky/i18n/BIG5HKSCS-2004.TXT ...
test_codecmaps_hk skipped -- Could not retrieve http://people.freebsd.org/~perky/i18n/BIG5HKSCS-2004.TXT
test_codecmaps_jp
	fetching http://www.unicode.org/Public/MAPPINGS/VENDORS/MICSFT/WINDOWS/CP932.TXT ...
test_codecmaps_jp skipped -- Could not retrieve http://www.unicode.org/Public/MAPPINGS/VENDORS/MICSFT/WINDOWS/CP932.TXT
test_codecmaps_kr
	fetching http://www.unicode.org/Public/MAPPINGS/VENDORS/MICSFT/WINDOWS/CP949.TXT ...
test_codecmaps_kr skipped -- Could not retrieve http://www.unicode.org/Public/MAPPINGS/VENDORS/MICSFT/WINDOWS/CP949.TXT
test_codecmaps_tw
	fetching http://www.unicode.org/Public/MAPPINGS/OBSOLETE/EASTASIA/OTHER/BIG5.TXT ...
test_codecmaps_tw skipped -- Could not retrieve http://www.unicode.org/Public/MAPPINGS/OBSOLETE/EASTASIA/OTHER/BIG5.TXT
test_codecs
test_codeop
test_coding
test_coercion
test_collections
test_colorsys
test_commands
test_compare
test_compile
test_compileall
test_compiler
test_complex
test_complex_args
test_contains
test_contextlib
test_cookie
test_cookielib
test_copy
test_copy_reg
test_cpickle
test_cprofile
test_crypt
test_csv
test_ctypes
test_curses
test_curses skipped -- Use of the `curses' resource not enabled
test_datetime
test_dbm
test_decimal
test_decorators
test_defaultdict
test_deque
test_descr
test_descrtut
test_dictcomps
test_dictviews
test_difflib
test_dircache
test_dis
test_distutils
[19646 refs]
[19646 refs]
[19646 refs]
[19646 refs]
[19643 refs]
test_dl
test_docxmlrpc
test_dumbdbm
test_dummy_thread
test_dummy_threading
test_email
test_email_codecs
test_email_renamed
test_enumerate
test_eof
test_epoll
test_epoll skipped -- kernel doesn't support epoll()
test_errno
test_exception_variations
test_extcall
test_fcntl
test_file
test_file2k
test_filecmp
test_fileinput
test_fileio
test_float
test_fnmatch
test_fork1
test_format
test_fpformat
test_fractions
test_frozen
test_ftplib
test_funcattrs
test_functools
test_future
test_future3
test_future4
test_future5
test_future_builtins
test_gc
test_gdb
test_gdb skipped -- gdb versions before 7.0 didn't support python embedding Saw:
GNU gdb 6.2.1
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-pc-linux-gnu".

test_gdbm
test_generators
test_genericpath
test_genexps
test_getargs
test_getargs2
test_getopt
test_gettext
test_gl
test_gl skipped -- No module named gl
test_glob
test_global
test_grp
test_gzip
test_hash
test_hashlib
test_heapq
test_hmac
test_hotshot
test_htmllib
test_htmlparser
test_httplib
test_httpservers
[15648 refs]
[15648 refs]
[15648 refs]
[25315 refs]
test_imageop
test_imaplib
test_imgfile
test_imgfile skipped -- No module named imgfile
test_imp
test_import
test_importhooks
test_importlib
test_index
test_inspect
test_int
test_int_literal
test_io
test_ioctl
test_ioctl skipped -- Unable to open /dev/tty
test_isinstance
test_iter
test_iterlen
test_itertools
test_json
test_kqueue
test_kqueue skipped -- test works only on BSD
test_largefile
test_lib2to3
test_linecache
test_linuxaudiodev
test_linuxaudiodev skipped -- Use of the `audio' resource not enabled
test_list
test_locale
test_logging
test_long
test_long_future
test_longexp
test_macos
test_macos skipped -- No module named MacOS
test_macostools
test_macostools skipped -- No module named MacOS
test_macpath
test_mailbox
test_marshal
test_math
test_md5
test_memoryio
test_memoryview
test_mhlib
test_mimetools
test_mimetypes
test_minidom
test_mmap
test_module
test_modulefinder
test_multibytecodec
test_multibytecodec_support
test_multifile
test_multiprocessing
test_multiprocessing skipped -- This platform lacks a functioning sem_open implementation, therefore, the required synchronization primitives needed will not function, see issue 3770.
test_mutants
test_mutex
test_netrc
test_new
test_nis
test_normalization
	fetching http://www.unicode.org/Public/5.2.0/ucd/NormalizationTest.txt ...
test_ntpath
test_old_mailbox
test_openpty
test_operator
test_optparse
test_os
[15648 refs]
[15648 refs]
test_ossaudiodev
test_ossaudiodev skipped -- Use of the `audio' resource not enabled
test_parser
Expecting 's_push: parser stack overflow' in next line
s_push: parser stack overflow
test_pdb
test_peepholer
test_pep247
test_pep263
test_pep277
test_pep277 skipped -- only NT+ and systems with Unicode-friendly filesystem encoding
test_pep292
test_pep352
test_pickle
test_pickletools
test_pipes
test_pkg
test_pkgimport
test_pkgutil
test_platform
[17044 refs]
[17044 refs]
test_plistlib
test_poll
test_popen
[15653 refs]
[15653 refs]
[15653 refs]
test_popen2
test_poplib
test_posix
test_posixpath
test_pow
test_pprint
test_print
test_profile
test_profilehooks
test_property
test_pstats
test_pty
test_pwd
test_py3kwarn
test_py3kwarn skipped -- test.test_py3kwarn must be run with the -3 flag
test_pyclbr
test_pydoc
[20862 refs]
[20862 refs]
[20862 refs]
[20862 refs]
[20862 refs]
[20861 refs]
[20861 refs]
test_pyexpat
test_queue
test_quopri
[18479 refs]
[18479 refs]
test_random
test_re
test_readline
test_repr
test_resource
test_rfc822
test_richcmp
test_robotparser
test_runpy
test_sax
test_scope
test_scriptpackages
test_scriptpackages skipped -- No module named aetools
test_select
test_set
test_setcomps
test_sets
test_sgmllib
test_sha
test_shelve
test_shlex
test_shutil
test_signal
test_site
[15648 refs]
[15648 refs]
[15648 refs]
[15648 refs]
test_slice
test_smtplib
test_smtpnet
test_smtpnet skipped -- Use of the `network' resource not enabled
test_socket
test_socketserver
test_socketserver skipped -- Use of the `network' resource not enabled
test_softspace
test_sort
test_sqlite
test_ssl
test_startfile
test_startfile skipped -- module os has no attribute startfile
test_str
test_strftime
test_string
test_stringprep
test_strop
test_strptime
test_strtod
test_struct
test_structmembers
test_structseq
test_subprocess
[15648 refs]
[15648 refs]
[15648 refs]
[15648 refs]
[15648 refs]
[15648 refs]
[15648 refs]
[15648 refs]
[15648 refs]
[15648 refs]
[15648 refs]
[15648 refs]
[15648 refs]
[15648 refs]
[15863 refs]
[15648 refs]
[15648 refs]
[15648 refs]
[15648 refs]
[15648 refs]
.
[15648 refs]
[15648 refs]
    this bit of output is from a test of stdout in a different process ...
[15648 refs]
[15648 refs]
[15863 refs]
[15648 refs]
[15648 refs]
[15648 refs]
[15648 refs]
[15648 refs]
[15648 refs]
[15648 refs]
[15648 refs]
[15648 refs]
[15648 refs]
[15648 refs]
[15648 refs]
[15648 refs]
[15648 refs]
[15648 refs]
[15648 refs]
[15648 refs]
[15863 refs]
[15648 refs]
[15648 refs]
[15648 refs]
[15648 refs]
[15648 refs]
.
[15648 refs]
[15648 refs]
    this bit of output is from a test of stdout in a different process ...
[15648 refs]
[15648 refs]
[15863 refs]
test_sunaudiodev
test_sunaudiodev skipped -- No module named sunaudiodev
test_sundry
test_symtable
test_syntax
test_sys
[15648 refs]
[15648 refs]
[15648 refs]
[15877 refs]
[15671 refs]
test_sysconfig
[15648 refs]
[15648 refs]
test_tarfile
test_tcl
test_tcl skipped -- No module named _tkinter
test_telnetlib
test_tempfile
[15648 refs]
test_textwrap
test_thread
test_threaded_import
test_threadedtempfile
test_threading
[18948 refs]
[20223 refs]
[20035 refs]
[20035 refs]
[20035 refs]
[20035 refs]
test_threading_local
test_threadsignals
test_time
test_timeout
test_timeout skipped -- Use of the `network' resource not enabled
test_tk
test_tk skipped -- No module named _tkinter
test_tokenize
test_trace
test_traceback
test_transformer
test_ttk_guionly
test_ttk_guionly skipped -- No module named _tkinter
test_ttk_textonly
test_ttk_textonly skipped -- No module named _tkinter
test_tuple
test_typechecks
test_ucn
test_unary
test_undocumented_details
test_unicode
test_unicode_file
test_unicode_file skipped -- No Unicode filesystem semantics on this platform.
test_unicodedata
test_univnewlines
test_univnewlines2k
test_unpack
test_urllib
test_urllib2
test test_urllib2 failed -- Traceback (most recent call last):
  File "/tmp/python-test/local/lib/python2.7/test/test_urllib2.py", line 711, in test_file
    h.file_open, Request(url))
  File "/tmp/python-test/local/lib/python2.7/unittest/case.py", line 456, in assertRaises
    callableObj(*args, **kwargs)
  File "/tmp/python-test/local/lib/python2.7/urllib2.py", line 1269, in file_open
    return self.open_local_file(req)
  File "/tmp/python-test/local/lib/python2.7/urllib2.py", line 1301, in open_local_file
    (not port and socket.gethostbyname(host) in self.get_names()):
gaierror: [Errno -2] Name or service not known

Re-running test 'test_urllib2' in verbose mode
Trying:
    mgr = urllib2.HTTPPasswordMgr()
Expecting nothing
ok
Trying:
    add = mgr.add_password
Expecting nothing
ok
Trying:
    add("Some Realm", "http://example.com/", "joe", "password")
Expecting nothing
ok
Trying:
    add("Some Realm", "http://example.com/ni", "ni", "ni")
Expecting nothing
ok
Trying:
    add("c", "http://example.com/foo", "foo", "ni")
Expecting nothing
ok
Trying:
    add("c", "http://example.com/bar", "bar", "nini")
Expecting nothing
ok
Trying:
    add("b", "http://example.com/", "first", "blah")
Expecting nothing
ok
Trying:
    add("b", "http://example.com/", "second", "spam")
Expecting nothing
ok
Trying:
    add("a", "http://example.com", "1", "a")
Expecting nothing
ok
Trying:
    add("Some Realm", "http://c.example.com:3128", "3", "c")
Expecting nothing
ok
Trying:
    add("Some Realm", "d.example.com", "4", "d")
Expecting nothing
ok
Trying:
    add("Some Realm", "e.example.com:3128", "5", "e")
Expecting nothing
ok
Trying:
    mgr.find_user_password("Some Realm", "example.com")
Expecting:
    ('joe', 'password')
ok
Trying:
    mgr.find_user_password("Some Realm", "http://example.com")
Expecting:
    ('joe', 'password')
ok
Trying:
    mgr.find_user_password("Some Realm", "http://example.com/")
Expecting:
    ('joe', 'password')
ok
Trying:
    mgr.find_user_password("Some Realm", "http://example.com/spam")
Expecting:
    ('joe', 'password')
ok
Trying:
    mgr.find_user_password("Some Realm", "http://example.com/spam/spam")
Expecting:
    ('joe', 'password')
ok
Trying:
    mgr.find_user_password("c", "http://example.com/foo")
Expecting:
    ('foo', 'ni')
ok
Trying:
    mgr.find_user_password("c", "http://example.com/bar")
Expecting:
    ('bar', 'nini')
ok
Trying:
    mgr.find_user_password("b", "http://example.com/")
Expecting:
    ('second', 'spam')
ok
Trying:
    mgr.find_user_password("a", "http://example.com/")
Expecting:
    ('1', 'a')
ok
Trying:
    mgr.find_user_password("a", "http://a.example.com/")
Expecting:
    (None, None)
ok
Trying:
    mgr.find_user_password("Some Realm", "c.example.com")
Expecting:
    (None, None)
ok
Trying:
    mgr.find_user_password("Some Realm", "c.example.com:3128")
Expecting:
    ('3', 'c')
ok
Trying:
    mgr.find_user_password("Some Realm", "http://c.example.com:3128")
Expecting:
    ('3', 'c')
ok
Trying:
    mgr.find_user_password("Some Realm", "d.example.com")
Expecting:
    ('4', 'd')
ok
Trying:
    mgr.find_user_password("Some Realm", "e.example.com:3128")
Expecting:
    ('5', 'e')
ok
Trying:
    mgr = urllib2.HTTPPasswordMgr()
Expecting nothing
ok
Trying:
    add = mgr.add_password
Expecting nothing
ok
Trying:
    add("f", "http://g.example.com:80", "10", "j")
Expecting nothing
ok
Trying:
    add("g", "http://h.example.com", "11", "k")
Expecting nothing
ok
Trying:
    add("h", "i.example.com:80", "12", "l")
Expecting nothing
ok
Trying:
    add("i", "j.example.com", "13", "m")
Expecting nothing
ok
Trying:
    mgr.find_user_password("f", "g.example.com:100")
Expecting:
    (None, None)
ok
Trying:
    mgr.find_user_password("f", "g.example.com:80")
Expecting:
    ('10', 'j')
ok
Trying:
    mgr.find_user_password("f", "g.example.com")
Expecting:
    (None, None)
ok
Trying:
    mgr.find_user_password("f", "http://g.example.com:100")
Expecting:
    (None, None)
ok
Trying:
    mgr.find_user_password("f", "http://g.example.com:80")
Expecting:
    ('10', 'j')
ok
Trying:
    mgr.find_user_password("f", "http://g.example.com")
Expecting:
    ('10', 'j')
ok
Trying:
    mgr.find_user_password("g", "h.example.com")
Expecting:
    ('11', 'k')
ok
Trying:
    mgr.find_user_password("g", "h.example.com:80")
Expecting:
    ('11', 'k')
ok
Trying:
    mgr.find_user_password("g", "http://h.example.com:80")
Expecting:
    ('11', 'k')
ok
Trying:
    mgr.find_user_password("h", "i.example.com")
Expecting:
    (None, None)
ok
Trying:
    mgr.find_user_password("h", "i.example.com:80")
Expecting:
    ('12', 'l')
ok
Trying:
    mgr.find_user_password("h", "http://i.example.com:80")
Expecting:
    ('12', 'l')
ok
Trying:
    mgr.find_user_password("i", "j.example.com")
Expecting:
    ('13', 'm')
ok
Trying:
    mgr.find_user_password("i", "j.example.com:80")
Expecting:
    (None, None)
ok
Trying:
    mgr.find_user_password("i", "http://j.example.com")
Expecting:
    ('13', 'm')
ok
Trying:
    mgr.find_user_password("i", "http://j.example.com:80")
Expecting:
    (None, None)
ok
Trying:
    url = "http://example.com"
Expecting nothing
ok
Trying:
    Request(url, headers={"Spam-eggs": "blah"}).headers["Spam-eggs"]
Expecting:
    'blah'
ok
Trying:
    Request(url, headers={"spam-EggS": "blah"}).headers["Spam-eggs"]
Expecting:
    'blah'
ok
Trying:
    url = "http://example.com"
Expecting nothing
ok
Trying:
    r = Request(url, headers={"Spam-eggs": "blah"})
Expecting nothing
ok
Trying:
    r.has_header("Spam-eggs")
Expecting:
    True
ok
Trying:
    r.header_items()
Expecting:
    [('Spam-eggs', 'blah')]
ok
Trying:
    r.add_header("Foo-Bar", "baz")
Expecting nothing
ok
Trying:
    items = r.header_items()
Expecting nothing
ok
Trying:
    items.sort()
Expecting nothing
ok
Trying:
    items
Expecting:
    [('Foo-bar', 'baz'), ('Spam-eggs', 'blah')]
ok
Trying:
    r.has_header("Not-there")
Expecting:
    False
ok
Trying:
    print r.get_header("Not-there")
Expecting:
    None
ok
Trying:
    r.get_header("Not-there", "default")
Expecting:
    'default'
ok
93 items had no tests:
    test.test_urllib2
    test.test_urllib2.FakeMethod
    test.test_urllib2.FakeMethod.__call__
    test.test_urllib2.FakeMethod.__init__
    test.test_urllib2.HandlerTests
    test.test_urllib2.HandlerTests._test_basic_auth
    test.test_urllib2.HandlerTests.test_basic_and_digest_auth_handlers
    test.test_urllib2.HandlerTests.test_basic_auth
    test.test_urllib2.HandlerTests.test_basic_auth_with_single_quoted_realm
    test.test_urllib2.HandlerTests.test_cookie_redirect
    test.test_urllib2.HandlerTests.test_cookies
    test.test_urllib2.HandlerTests.test_errors
    test.test_urllib2.HandlerTests.test_file
    test.test_urllib2.HandlerTests.test_ftp
    test.test_urllib2.HandlerTests.test_http
    test.test_urllib2.HandlerTests.test_http_doubleslash
    test.test_urllib2.HandlerTests.test_proxy
    test.test_urllib2.HandlerTests.test_proxy_basic_auth
    test.test_urllib2.HandlerTests.test_proxy_https
    test.test_urllib2.HandlerTests.test_proxy_https_proxy_authorization
    test.test_urllib2.HandlerTests.test_proxy_no_proxy
    test.test_urllib2.HandlerTests.test_redirect
    test.test_urllib2.MiscTests
    test.test_urllib2.MiscTests.opener_has_handler
    test.test_urllib2.MiscTests.test_build_opener
    test.test_urllib2.MockCookieJar
    test.test_urllib2.MockCookieJar.add_cookie_header
    test.test_urllib2.MockCookieJar.extract_cookies
    test.test_urllib2.MockFile
    test.test_urllib2.MockFile.close
    test.test_urllib2.MockFile.read
    test.test_urllib2.MockFile.readline
    test.test_urllib2.MockHTTPClass
    test.test_urllib2.MockHTTPClass.__call__
    test.test_urllib2.MockHTTPClass.__init__
    test.test_urllib2.MockHTTPClass.getresponse
    test.test_urllib2.MockHTTPClass.request
    test.test_urllib2.MockHTTPClass.set_debuglevel
    test.test_urllib2.MockHTTPClass.set_tunnel
    test.test_urllib2.MockHTTPHandler
    test.test_urllib2.MockHTTPHandler.__init__
    test.test_urllib2.MockHTTPHandler.http_open
    test.test_urllib2.MockHTTPHandler.reset
    test.test_urllib2.MockHTTPResponse
    test.test_urllib2.MockHTTPResponse.__init__
    test.test_urllib2.MockHTTPResponse.read
    test.test_urllib2.MockHTTPSHandler
    test.test_urllib2.MockHTTPSHandler.__init__
    test.test_urllib2.MockHTTPSHandler.https_open
    test.test_urllib2.MockHandler
    test.test_urllib2.MockHandler.__init__
    test.test_urllib2.MockHandler.__lt__
    test.test_urllib2.MockHandler._define_methods
    test.test_urllib2.MockHandler.add_parent
    test.test_urllib2.MockHandler.close
    test.test_urllib2.MockHandler.handle
    test.test_urllib2.MockHeaders
    test.test_urllib2.MockHeaders.getheaders
    test.test_urllib2.MockOpener
    test.test_urllib2.MockOpener.error
    test.test_urllib2.MockOpener.open
    test.test_urllib2.MockPasswordManager
    test.test_urllib2.MockPasswordManager.add_password
    test.test_urllib2.MockPasswordManager.find_user_password
    test.test_urllib2.MockResponse
    test.test_urllib2.MockResponse.__init__
    test.test_urllib2.MockResponse.geturl
    test.test_urllib2.MockResponse.info
    test.test_urllib2.OpenerDirectorTests
    test.test_urllib2.OpenerDirectorTests.test_add_non_handler
    test.test_urllib2.OpenerDirectorTests.test_badly_named_methods
    test.test_urllib2.OpenerDirectorTests.test_handled
    test.test_urllib2.OpenerDirectorTests.test_handler_order
    test.test_urllib2.OpenerDirectorTests.test_http_error
    test.test_urllib2.OpenerDirectorTests.test_processors
    test.test_urllib2.OpenerDirectorTests.test_raise
    test.test_urllib2.RequestTests
    test.test_urllib2.RequestTests.setUp
    test.test_urllib2.RequestTests.test_add_data
    test.test_urllib2.RequestTests.test_get_full_url
    test.test_urllib2.RequestTests.test_get_host
    test.test_urllib2.RequestTests.test_get_host_unquote
    test.test_urllib2.RequestTests.test_get_type
    test.test_urllib2.RequestTests.test_method
    test.test_urllib2.RequestTests.test_proxy
    test.test_urllib2.RequestTests.test_selector
    test.test_urllib2.TrivialTests
    test.test_urllib2.TrivialTests.test_parse_http_list
    test.test_urllib2.TrivialTests.test_trivial
    test.test_urllib2.add_ordered_mock_handlers
    test.test_urllib2.build_test_opener
    test.test_urllib2.sanepathname2url
    test.test_urllib2.test_main
4 items passed all tests:
  27 tests in test.test_urllib2.test_password_manager
  22 tests in test.test_urllib2.test_password_manager_default_port
   3 tests in test.test_urllib2.test_request_headers_dict
  11 tests in test.test_urllib2.test_request_headers_methods
63 tests in 97 items.
63 passed and 0 failed.
Test passed.
doctest (test.test_urllib2) ... 63 tests with zero failures
Trying:
    _parse_proxy('file:/ftp.example.com/')
Expecting:
    Traceback (most recent call last):
    ValueError: proxy URL with no authority: 'file:/ftp.example.com/'
ok
Trying:
    _parse_proxy('proxy.example.com')
Expecting:
    (None, None, None, 'proxy.example.com')
ok
Trying:
    _parse_proxy('proxy.example.com:3128')
Expecting:
    (None, None, None, 'proxy.example.com:3128')
ok
Trying:
    _parse_proxy('joe:password at proxy.example.com')
Expecting:
    (None, 'joe', 'password', 'proxy.example.com')
ok
Trying:
    _parse_proxy('joe:password at proxy.example.com:3128')
Expecting:
    (None, 'joe', 'password', 'proxy.example.com:3128')
ok
Trying:
    _parse_proxy('http://proxy.example.com/')
Expecting:
    ('http', None, None, 'proxy.example.com')
ok
Trying:
    _parse_proxy('http://proxy.example.com:3128/')
Expecting:
    ('http', None, None, 'proxy.example.com:3128')
ok
Trying:
    _parse_proxy('http://joe:password@proxy.example.com/')
Expecting:
    ('http', 'joe', 'password', 'proxy.example.com')
ok
Trying:
    _parse_proxy('http://joe:password@proxy.example.com:3128')
Expecting:
    ('http', 'joe', 'password', 'proxy.example.com:3128')
ok
Trying:
    _parse_proxy('ftp://joe:password@proxy.example.com/rubbish:3128')
Expecting:
    ('ftp', 'joe', 'password', 'proxy.example.com')
ok
Trying:
    _parse_proxy('http://joe:password@proxy.example.com')
Expecting:
    ('http', 'joe', 'password', 'proxy.example.com')
ok
113 items had no tests:
    urllib2
    urllib2.AbstractBasicAuthHandler
    urllib2.AbstractBasicAuthHandler.__init__
    urllib2.AbstractBasicAuthHandler.http_error_auth_reqed
    urllib2.AbstractBasicAuthHandler.retry_http_basic_auth
    urllib2.AbstractDigestAuthHandler
    urllib2.AbstractDigestAuthHandler.__init__
    urllib2.AbstractDigestAuthHandler.get_algorithm_impls
    urllib2.AbstractDigestAuthHandler.get_authorization
    urllib2.AbstractDigestAuthHandler.get_cnonce
    urllib2.AbstractDigestAuthHandler.get_entity_digest
    urllib2.AbstractDigestAuthHandler.http_error_auth_reqed
    urllib2.AbstractDigestAuthHandler.reset_retry_count
    urllib2.AbstractDigestAuthHandler.retry_http_digest_auth
    urllib2.AbstractHTTPHandler
    urllib2.AbstractHTTPHandler.__init__
    urllib2.AbstractHTTPHandler.do_open
    urllib2.AbstractHTTPHandler.do_request_
    urllib2.AbstractHTTPHandler.set_http_debuglevel
    urllib2.BaseHandler
    urllib2.BaseHandler.__lt__
    urllib2.BaseHandler.add_parent
    urllib2.BaseHandler.close
    urllib2.CacheFTPHandler
    urllib2.CacheFTPHandler.__init__
    urllib2.CacheFTPHandler.check_cache
    urllib2.CacheFTPHandler.connect_ftp
    urllib2.CacheFTPHandler.setMaxConns
    urllib2.CacheFTPHandler.setTimeout
    urllib2.FTPHandler
    urllib2.FTPHandler.connect_ftp
    urllib2.FTPHandler.ftp_open
    urllib2.FileHandler
    urllib2.FileHandler.file_open
    urllib2.FileHandler.get_names
    urllib2.FileHandler.open_local_file
    urllib2.HTTPBasicAuthHandler
    urllib2.HTTPBasicAuthHandler.http_error_401
    urllib2.HTTPCookieProcessor
    urllib2.HTTPCookieProcessor.__init__
    urllib2.HTTPCookieProcessor.http_request
    urllib2.HTTPCookieProcessor.https_response
    urllib2.HTTPDefaultErrorHandler
    urllib2.HTTPDefaultErrorHandler.http_error_default
    urllib2.HTTPDigestAuthHandler
    urllib2.HTTPDigestAuthHandler.http_error_401
    urllib2.HTTPError
    urllib2.HTTPError.__init__
    urllib2.HTTPError.__str__
    urllib2.HTTPErrorProcessor
    urllib2.HTTPErrorProcessor.https_response
    urllib2.HTTPHandler
    urllib2.HTTPHandler.http_open
    urllib2.HTTPPasswordMgr
    urllib2.HTTPPasswordMgr.__init__
    urllib2.HTTPPasswordMgr.add_password
    urllib2.HTTPPasswordMgr.find_user_password
    urllib2.HTTPPasswordMgr.is_suburi
    urllib2.HTTPPasswordMgr.reduce_uri
    urllib2.HTTPPasswordMgrWithDefaultRealm
    urllib2.HTTPPasswordMgrWithDefaultRealm.find_user_password
    urllib2.HTTPRedirectHandler
    urllib2.HTTPRedirectHandler.http_error_307
    urllib2.HTTPRedirectHandler.redirect_request
    urllib2.HTTPSHandler
    urllib2.HTTPSHandler.https_open
    urllib2.OpenerDirector
    urllib2.OpenerDirector.__init__
    urllib2.OpenerDirector._call_chain
    urllib2.OpenerDirector._open
    urllib2.OpenerDirector.add_handler
    urllib2.OpenerDirector.close
    urllib2.OpenerDirector.error
    urllib2.OpenerDirector.open
    urllib2.ProxyBasicAuthHandler
    urllib2.ProxyBasicAuthHandler.http_error_407
    urllib2.ProxyDigestAuthHandler
    urllib2.ProxyDigestAuthHandler.http_error_407
    urllib2.ProxyHandler
    urllib2.ProxyHandler.__init__
    urllib2.ProxyHandler.proxy_open
    urllib2.Request
    urllib2.Request.__getattr__
    urllib2.Request.__init__
    urllib2.Request.add_data
    urllib2.Request.add_header
    urllib2.Request.add_unredirected_header
    urllib2.Request.get_data
    urllib2.Request.get_full_url
    urllib2.Request.get_header
    urllib2.Request.get_host
    urllib2.Request.get_method
    urllib2.Request.get_origin_req_host
    urllib2.Request.get_selector
    urllib2.Request.get_type
    urllib2.Request.has_data
    urllib2.Request.has_header
    urllib2.Request.has_proxy
    urllib2.Request.header_items
    urllib2.Request.is_unverifiable
    urllib2.Request.set_proxy
    urllib2.URLError
    urllib2.URLError.__init__
    urllib2.URLError.__str__
    urllib2.UnknownHandler
    urllib2.UnknownHandler.unknown_open
    urllib2.build_opener
    urllib2.install_opener
    urllib2.parse_http_list
    urllib2.parse_keqv_list
    urllib2.randombytes
    urllib2.request_host
    urllib2.urlopen
1 items passed all tests:
  11 tests in urllib2._parse_proxy
11 tests in 114 items.
11 passed and 0 failed.
Test passed.
doctest (urllib2) ... 11 tests with zero failures
test_parse_http_list (test.test_urllib2.TrivialTests) ... ok
test_trivial (test.test_urllib2.TrivialTests) ... ok
test_add_non_handler (test.test_urllib2.OpenerDirectorTests) ... ok
test_badly_named_methods (test.test_urllib2.OpenerDirectorTests) ... ok
test_handled (test.test_urllib2.OpenerDirectorTests) ... ok
test_handler_order (test.test_urllib2.OpenerDirectorTests) ... ok
test_http_error (test.test_urllib2.OpenerDirectorTests) ... ok
test_processors (test.test_urllib2.OpenerDirectorTests) ... ok
test_raise (test.test_urllib2.OpenerDirectorTests) ... ok
test_basic_and_digest_auth_handlers (test.test_urllib2.HandlerTests) ... ok
test_basic_auth (test.test_urllib2.HandlerTests) ... ok
test_basic_auth_with_single_quoted_realm (test.test_urllib2.HandlerTests) ... ok
test_cookie_redirect (test.test_urllib2.HandlerTests) ... ok
test_cookies (test.test_urllib2.HandlerTests) ... ok
test_errors (test.test_urllib2.HandlerTests) ... ok
test_file (test.test_urllib2.HandlerTests) ... ERROR
test_ftp (test.test_urllib2.HandlerTests) ... ok
test_http (test.test_urllib2.HandlerTests) ... ok
test_http_doubleslash (test.test_urllib2.HandlerTests) ... ok
test_proxy (test.test_urllib2.HandlerTests) ... ok
test_proxy_basic_auth (test.test_urllib2.HandlerTests) ... ok
test_proxy_https (test.test_urllib2.HandlerTests) ... ok
test_proxy_https_proxy_authorization (test.test_urllib2.HandlerTests) ... ok
test_proxy_no_proxy (test.test_urllib2.HandlerTests) ... ok
test_redirect (test.test_urllib2.HandlerTests) ... ok
test_build_opener (test.test_urllib2.MiscTests) ... ok
test_add_data (test.test_urllib2.RequestTests) ... ok
test_get_full_url (test.test_urllib2.RequestTests) ... ok
test_get_host (test.test_urllib2.RequestTests) ... ok
test_get_host_unquote (test.test_urllib2.RequestTests) ... ok
test_get_type (test.test_urllib2.RequestTests) ... ok
test_method (test.test_urllib2.RequestTests) ... ok
test_proxy (test.test_urllib2.RequestTests) ... ok
test_selector (test.test_urllib2.RequestTests) ... ok

======================================================================
ERROR: test_file (test.test_urllib2.HandlerTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/tmp/python-test/local/lib/python2.7/test/test_urllib2.py", line 711, in test_file
    h.file_open, Request(url))
  File "/tmp/python-test/local/lib/python2.7/unittest/case.py", line 456, in assertRaises
    callableObj(*args, **kwargs)
  File "/tmp/python-test/local/lib/python2.7/urllib2.py", line 1269, in file_open
    return self.open_local_file(req)
  File "/tmp/python-test/local/lib/python2.7/urllib2.py", line 1301, in open_local_file
    (not port and socket.gethostbyname(host) in self.get_names()):
gaierror: [Errno -2] Name or service not known

----------------------------------------------------------------------
Ran 34 tests in 19.586s

FAILED (errors=1)
test test_urllib2 failed -- Traceback (most recent call last):
  File "/tmp/python-test/local/lib/python2.7/test/test_urllib2.py", line 711, in test_file
    h.file_open, Request(url))
  File "/tmp/python-test/local/lib/python2.7/unittest/case.py", line 456, in assertRaises
    callableObj(*args, **kwargs)
  File "/tmp/python-test/local/lib/python2.7/urllib2.py", line 1269, in file_open
    return self.open_local_file(req)
  File "/tmp/python-test/local/lib/python2.7/urllib2.py", line 1301, in open_local_file
    (not port and socket.gethostbyname(host) in self.get_names()):
gaierror: [Errno -2] Name or service not known

test_urllib2_localnet
test_urllib2net
test_urllib2net skipped -- Use of the `network' resource not enabled
test_urllibnet
test_urllibnet skipped -- Use of the `network' resource not enabled
test_urlparse
test_userdict
test_userlist
test_userstring
test_uu
test_uuid
test_wait3
test_wait4
test_warnings
[15679 refs]
[15679 refs]
[15672 refs]
[15679 refs]
[15679 refs]
[15672 refs]
test_wave
test_weakref
test_weakset
test_whichdb
test_winreg
test_winreg skipped -- No module named _winreg
test_winsound
test_winsound skipped -- No module named winsound
test_with
test_wsgiref
test_xdrlib
test_xml_etree
test_xml_etree_c
test_xmllib
test_xmlrpc
test_xpickle
test_xpickle -- skipping backwards compat tests.
Use 'regrtest.py -u xpickle' to run them.
test_xrange
test_zipfile
test_zipfile64
test_zipfile64 skipped -- test requires loads of disk-space bytes and a long time to run
test_zipimport
test_zipimport_support
test_zlib
341 tests OK.
1 test failed:
    test_urllib2
42 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_epoll test_gdb test_gl test_imgfile test_ioctl test_kqueue
    test_linuxaudiodev test_macos test_macostools test_multiprocessing
    test_ossaudiodev test_pep277 test_py3kwarn test_scriptpackages
    test_smtpnet test_socketserver test_startfile test_sunaudiodev
    test_tcl test_timeout test_tk test_ttk_guionly test_ttk_textonly
    test_unicode_file test_urllib2net test_urllibnet test_winreg
    test_winsound test_zipfile64
12 skips unexpected on linux2:
    test_codecmaps_cn test_codecmaps_hk test_codecmaps_jp
    test_codecmaps_kr test_codecmaps_tw test_epoll test_gdb test_ioctl
    test_multiprocessing test_tk test_ttk_guionly test_ttk_textonly
[965767 refs]


More information about the Python-checkins mailing list