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

Neal Norwitz nnorwitz at gmail.com
Sun Sep 30 22:12:25 CEST 2007


test_grammar
test_opcodes
test_dict
test_builtin
test test_builtin failed -- Traceback (most recent call last):
  File "/tmp/python-test/local/lib/python2.6/test/test_builtin.py", line 1669, in test_str
    self.assertEqual(str(()), '()')
AssertionError: '(...)' != '()'

test_exceptions
test_types
test_unittest
test_doctest
test_doctest2
test_MimeWriter
test_StringIO
test___all__
test___future__
test__locale
test_abc
test_aepack
test_aepack skipped -- No module named aepack
test_al
test_al skipped -- No module named al
test_anydbm
test_applesingle
test_applesingle skipped -- No module named macostools
test_array
test_ast
test_asynchat
  WARNING: failed to listen on port 54322, trying another
  WARNING: failed to listen on port 9907, trying another
  WARNING: failed to listen on port 10243, trying another
test_asyncore
test_atexit
test test_atexit failed -- Traceback (most recent call last):
  File "/tmp/python-test/local/lib/python2.6/test/test_atexit.py", line 23, in test_args
    self.assertEqual(s.getvalue(), "h4 (4,) {'kw': 'abc'}\nh4 () {}\nh1\n")
AssertionError: "h4 (4,) {'kw': 'abc'}\nh4 (...) {}\nh1\n" != "h4 (4,) {'kw': 'abc'}\nh4 () {}\nh1\n"

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_bz2
test_cProfile
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_line
test_code
**********************************************************************
File "/tmp/python-test/local/lib/python2.6/test/test_code.py", line 9, in test.test_code
Failed example:
    dump(f.func_code)
Expected:
    name: f
    argcount: 1
    names: ()
    varnames: ('x', 'g')
    cellvars: ('x',)
    freevars: ()
    nlocals: 2
    flags: 3
    consts: ('None', '<code object g>')
Got:
    name: f
    argcount: 1
    names: (...)
    varnames: ('x', 'g')
    cellvars: ('x',)
    freevars: (...)
    nlocals: 2
    flags: 3
    consts: ('None', '<code object g>')
**********************************************************************
File "/tmp/python-test/local/lib/python2.6/test/test_code.py", line 20, in test.test_code
Failed example:
    dump(f(4).func_code)
Expected:
    name: g
    argcount: 1
    names: ()
    varnames: ('y',)
    cellvars: ()
    freevars: ('x',)
    nlocals: 1
    flags: 19
    consts: ('None',)
Got:
    name: g
    argcount: 1
    names: (...)
    varnames: ('y',)
    cellvars: (...)
    freevars: ('x',)
    nlocals: 1
    flags: 19
    consts: ('None',)
**********************************************************************
File "/tmp/python-test/local/lib/python2.6/test/test_code.py", line 37, in test.test_code
Failed example:
    dump(h.func_code)
Expected:
    name: h
    argcount: 2
    names: ()
    varnames: ('x', 'y', 'a', 'b', 'c')
    cellvars: ()
    freevars: ()
    nlocals: 5
    flags: 67
    consts: ('None',)
Got:
    name: h
    argcount: 2
    names: (...)
    varnames: ('x', 'y', 'a', 'b', 'c')
    cellvars: (...)
    freevars: (...)
    nlocals: 5
    flags: 67
    consts: ('None',)
**********************************************************************
File "/tmp/python-test/local/lib/python2.6/test/test_code.py", line 53, in test.test_code
Failed example:
    dump(attrs.func_code)
Expected:
    name: attrs
    argcount: 1
    names: ('attr1', 'attr2', 'attr3')
    varnames: ('obj',)
    cellvars: ()
    freevars: ()
    nlocals: 1
    flags: 67
    consts: ('None',)
Got:
    name: attrs
    argcount: 1
    names: ('attr1', 'attr2', 'attr3')
    varnames: ('obj',)
    cellvars: (...)
    freevars: (...)
    nlocals: 1
    flags: 67
    consts: ('None',)
**********************************************************************
File "/tmp/python-test/local/lib/python2.6/test/test_code.py", line 70, in test.test_code
Failed example:
    dump(optimize_away.func_code)
Expected:
    name: optimize_away
    argcount: 0
    names: ()
    varnames: ()
    cellvars: ()
    freevars: ()
    nlocals: 0
    flags: 67
    consts: ("'doc string'", 'None')
Got:
    name: optimize_away
    argcount: 0
    names: (...)
    varnames: (...)
    cellvars: (...)
    freevars: (...)
    nlocals: 0
    flags: 67
    consts: ("'doc string'", 'None')
**********************************************************************
1 items had failures:
   5 of   9 in test.test_code
***Test Failed*** 5 failures.
test test_code failed -- 5 of 9 doctests failed
test_codeccallbacks
test_codecencodings_cn
test_codecencodings_hk
test_codecencodings_jp
test_codecencodings_kr
test_codecencodings_tw
test_codecmaps_cn
test_codecmaps_cn skipped -- Use of the `urlfetch' resource not enabled
test_codecmaps_hk
test_codecmaps_hk skipped -- Use of the `urlfetch' resource not enabled
test_codecmaps_jp
test_codecmaps_jp skipped -- Use of the `urlfetch' resource not enabled
test_codecmaps_kr
test_codecmaps_kr skipped -- Use of the `urlfetch' resource not enabled
test_codecmaps_tw
test_codecmaps_tw skipped -- Use of the `urlfetch' resource not enabled
test_codecs
test_codeop
test_coding
test_coercion
test_collections
test test_collections failed -- Traceback (most recent call last):
  File "/tmp/python-test/local/lib/python2.6/test/test_collections.py", line 62, in test_odd_sizes
    Zero = NamedTuple('Zero', '')
  File "/tmp/python-test/local/lib/python2.6/collections.py", line 52, in NamedTuple
    exec template in m
  File "<string>", line 4
    __fields__ = (...)
                  ^
SyntaxError: invalid syntax

test_colorsys
test_commands
test_compare
test_compile
test_compiler
test_complex
test_complex_args
test_contains
test_contextlib
test_cookie
test_cookielib
test_copy
test_copy_reg
test_cpickle
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_difflib
test_dircache
test_dis
test_distutils
test_dl
test_dumbdbm
test_dummy_thread
test_dummy_threading
test_email
test_email_codecs
test_email_renamed
test_enumerate
test_eof
test_errno
test_exception_variations
test_extcall
test test_extcall produced unexpected output:
**********************************************************************
*** mismatch between line 2 of expected output and line 2 of actual output:
- () {}
+ (...) {}
?  +++
*** mismatch between line 18 of expected output and line 18 of actual output:
- 1 () {}
+ 1 (...) {}
?    +++
*** mismatch between line 24 of expected output and line 24 of actual output:
- 1 () {'a': 1, 'b': 2, 'c': 3, 'd': 4}
+ 1 (...) {'a': 1, 'b': 2, 'c': 3, 'd': 4}
?    +++
*** mismatch between lines 41-45 of expected output and lines 41-45 of actual output:
- za () {} -> za() takes exactly 1 argument (0 given)
+ za (...) {} -> za() takes exactly 1 argument (0 given)
?     +++
- za () {'a': 'aa'} -> ok za aa B D E V a
+ za (...) {'a': 'aa'} -> ok za aa B D E V a
?     +++
- za () {'d': 'dd'} -> za() got an unexpected keyword argument 'd'
+ za (...) {'d': 'dd'} -> za() got an unexpected keyword argument 'd'
?     +++
- za () {'a': 'aa', 'd': 'dd'} -> za() got an unexpected keyword argument 'd'
+ za (...) {'a': 'aa', 'd': 'dd'} -> za() got an unexpected keyword argument 'd'
?     +++
- za () {'a': 'aa', 'b': 'bb', 'd': 'dd', 'e': 'ee'} -> za() got an unexpected keyword argument 'b'
+ za (...) {'a': 'aa', 'b': 'bb', 'd': 'dd', 'e': 'ee'} -> za() got an unexpected keyword argument 'b'
?     +++
*** mismatch between lines 56-60 of expected output and lines 56-60 of actual output:
- zade () {} -> zade() takes at least 1 argument (0 given)
+ zade (...) {} -> zade() takes at least 1 argument (0 given)
?       +++
- zade () {'a': 'aa'} -> ok zade aa B d e V a
+ zade (...) {'a': 'aa'} -> ok zade aa B d e V a
?       +++
- zade () {'d': 'dd'} -> zade() takes at least 1 non-keyword argument (0 given)
+ zade (...) {'d': 'dd'} -> zade() takes at least 1 non-keyword argument (0 given)
?       +++
- zade () {'a': 'aa', 'd': 'dd'} -> ok zade aa B dd e V d
+ zade (...) {'a': 'aa', 'd': 'dd'} -> ok zade aa B dd e V d
?       +++
- zade () {'a': 'aa', 'b': 'bb', 'd': 'dd', 'e': 'ee'} -> zade() got an unexpected keyword argument 'b'
+ zade (...) {'a': 'aa', 'b': 'bb', 'd': 'dd', 'e': 'ee'} -> zade() got an unexpected keyword argument 'b'
?       +++
*** mismatch between lines 71-75 of expected output and lines 71-75 of actual output:
- zabk () {} -> zabk() takes exactly 2 arguments (0 given)
+ zabk (...) {} -> zabk() takes exactly 2 arguments (0 given)
?       +++
- zabk () {'a': 'aa'} -> zabk() takes exactly 2 non-keyword arguments (1 given)
+ zabk (...) {'a': 'aa'} -> zabk() takes exactly 2 non-keyword arguments (1 given)
?       +++
- zabk () {'d': 'dd'} -> zabk() takes exactly 2 non-keyword arguments (0 given)
+ zabk (...) {'d': 'dd'} -> zabk() takes exactly 2 non-keyword arguments (0 given)
?       +++
- zabk () {'a': 'aa', 'd': 'dd'} -> zabk() takes exactly 2 non-keyword arguments (1 given)
+ zabk (...) {'a': 'aa', 'd': 'dd'} -> zabk() takes exactly 2 non-keyword arguments (1 given)
?       +++
- zabk () {'a': 'aa', 'b': 'bb', 'd': 'dd', 'e': 'ee'} -> ok zabk aa bb D E V {'d': 'dd', 'e': 'ee'}
+ zabk (...) {'a': 'aa', 'b': 'bb', 'd': 'dd', 'e': 'ee'} -> ok zabk aa bb D E V {'d': 'dd', 'e': 'ee'}
?       +++
*** mismatch between lines 86-91 of expected output and lines 86-91 of actual output:
- zabdv () {} -> zabdv() takes at least 2 arguments (0 given)
+ zabdv (...) {} -> zabdv() takes at least 2 arguments (0 given)
?        +++
- zabdv () {'a': 'aa'} -> zabdv() takes at least 2 non-keyword arguments (1 given)
+ zabdv (...) {'a': 'aa'} -> zabdv() takes at least 2 non-keyword arguments (1 given)
?        +++
- zabdv () {'d': 'dd'} -> zabdv() takes at least 2 non-keyword arguments (0 given)
+ zabdv (...) {'d': 'dd'} -> zabdv() takes at least 2 non-keyword arguments (0 given)
?        +++
- zabdv () {'a': 'aa', 'd': 'dd'} -> zabdv() takes at least 2 non-keyword arguments (1 given)
+ zabdv (...) {'a': 'aa', 'd': 'dd'} -> zabdv() takes at least 2 non-keyword arguments (1 given)
?        +++
- zabdv () {'a': 'aa', 'b': 'bb', 'd': 'dd', 'e': 'ee'} -> zabdv() got an unexpected keyword argument 'e'
+ zabdv (...) {'a': 'aa', 'b': 'bb', 'd': 'dd', 'e': 'ee'} -> zabdv() got an unexpected keyword argument 'e'
?        +++
- zabdv (1, 2) {} -> ok zabdv 1 2 d E () e
+ zabdv (1, 2) {} -> ok zabdv 1 2 d E (...) e
?                                      +++
*** mismatch between line 93 of expected output and line 93 of actual output:
- zabdv (1, 2) {'d': 'dd'} -> ok zabdv 1 2 dd E () d
+ zabdv (1, 2) {'d': 'dd'} -> ok zabdv 1 2 dd E (...) d
?                                                +++
*** mismatch between lines 101-106 of expected output and lines 101-106 of actual output:
- zabdevk () {} -> zabdevk() takes at least 2 arguments (0 given)
+ zabdevk (...) {} -> zabdevk() takes at least 2 arguments (0 given)
?          +++
- zabdevk () {'a': 'aa'} -> zabdevk() takes at least 2 non-keyword arguments (1 given)
+ zabdevk (...) {'a': 'aa'} -> zabdevk() takes at least 2 non-keyword arguments (1 given)
?          +++
- zabdevk () {'d': 'dd'} -> zabdevk() takes at least 2 non-keyword arguments (0 given)
+ zabdevk (...) {'d': 'dd'} -> zabdevk() takes at least 2 non-keyword arguments (0 given)
?          +++
- zabdevk () {'a': 'aa', 'd': 'dd'} -> zabdevk() takes at least 2 non-keyword arguments (1 given)
+ zabdevk (...) {'a': 'aa', 'd': 'dd'} -> zabdevk() takes at least 2 non-keyword arguments (1 given)
?          +++
- zabdevk () {'a': 'aa', 'b': 'bb', 'd': 'dd', 'e': 'ee'} -> ok zabdevk aa bb dd ee () {}
+ zabdevk (...) {'a': 'aa', 'b': 'bb', 'd': 'dd', 'e': 'ee'} -> ok zabdevk aa bb dd ee (...) {}
?          +++                                                                          +++
- zabdevk (1, 2) {} -> ok zabdevk 1 2 d e () {}
+ zabdevk (1, 2) {} -> ok zabdevk 1 2 d e (...) {}
?                                          +++
*** mismatch between line 108 of expected output and line 108 of actual output:
- zabdevk (1, 2) {'d': 'dd'} -> ok zabdevk 1 2 dd e () {}
+ zabdevk (1, 2) {'d': 'dd'} -> ok zabdevk 1 2 dd e (...) {}
?                                                    +++
**********************************************************************
test_fcntl
test_file
test_filecmp
test_fileinput
test_float
test_fnmatch
test_fork1
test_format
test_fpformat
test_frozen
test_ftplib
test_funcattrs
test_functools
test_future
test_gc
test_gdbm
test_generators
**********************************************************************
File "/tmp/python-test/local/lib/python2.6/test/test_generators.py", line ?, in test.test_generators.__test__.refleaks
Failed example:
    try:
        sys.stderr = StringIO.StringIO()
        class Leaker:
            def __del__(self):
                raise RuntimeError

        l = Leaker()
        del l
        err = sys.stderr.getvalue().strip()
        err.startswith(
            "Exception RuntimeError: RuntimeError() in <"
        )
        err.endswith("> ignored")
        len(err.splitlines())
    finally:
        sys.stderr = old
Expected:
    True
    True
    1
Got:
    False
    True
    1
**********************************************************************
1 items had failures:
   1 of   9 in test.test_generators.__test__.refleaks
***Test Failed*** 1 failures.
test test_generators failed -- 1 of 266 doctests failed
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_hexoct
test_hmac
test_hotshot
test_htmllib
test_htmlparser
test_httplib
test_imageop
test_imageop skipped -- No module named imgfile
test_imaplib
test_imgfile
test_imgfile skipped -- No module named imgfile
test_imp
test_import
test_importhooks
test_index
test_inspect
test test_inspect failed -- Traceback (most recent call last):
  File "/tmp/python-test/local/lib/python2.6/test/test_inspect.py", line 124, in test_previous_frame
    '(a=7, b=8, c=9, d=3, (e=4, (f=5,)), *g=(), **h={})')
AssertionError: '(a=7, b=8, c=9, d=3, (e=4, (f=5,)), *g=(...), **h={})' != '(a=7, b=8, c=9, d=3, (e=4, (f=5,)), *g=(), **h={})'

test_ioctl
test_ioctl skipped -- Unable to open /dev/tty
test_isinstance
test_iter
test_iterlen
test_itertools
test_largefile
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_macostools
test_macostools skipped -- No module named macostools
test_macpath
test_mailbox
test_marshal
test_math
test_md5
test_mhlib
test_mimetools
test_mimetypes
test_minidom
test_mmap
test_module
test_modulefinder
test_multibytecodec
test_multibytecodec_support
test_multifile
test_mutants
test_netrc
test_new
test_nis
test_normalization
test_normalization skipped -- Use of the `urlfetch' resource not enabled
test_ntpath
test_old_mailbox
test_openpty
test_operator
test_optparse
test_os
test_ossaudiodev
test_ossaudiodev skipped -- Use of the `audio' resource not enabled
test_parser
test_peepholer
test_pep247
test_pep263
test_pep277
test_pep277 skipped -- test works only on NT+
test_pep292
test_pep352
test test_pep352 failed -- Traceback (most recent call last):
  File "/tmp/python-test/local/lib/python2.6/test/test_pep352.py", line 130, in test_interface_no_arg
    self.interface_test_driver(results)
  File "/tmp/python-test/local/lib/python2.6/test/test_pep352.py", line 92, in interface_test_driver
    given, expected))
AssertionError: repr: Exception(...) != Exception()

test_pickle
test_pickletools
test_pipes
test_pkg
test_pkgimport
test_platform
test_plistlib
test_plistlib skipped -- No module named plistlib
test_poll
test_popen
[7360 refs]
[7360 refs]
[7360 refs]
test_popen2
test_poplib
test_posix
test_posixpath
test_pow
test_pprint
test test_pprint failed -- Traceback (most recent call last):
  File "/tmp/python-test/local/lib/python2.6/test/test_pprint.py", line 134, in test_same_as_repr
    (native, got, function))
AssertionError: expected (...) got () from pprint.pformat

test_profile
test_profilehooks
test_pty
test_pwd
test_pyclbr
test_pyexpat
test_queue
test_quopri
[7735 refs]
[7735 refs]
test_random
test_re
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_sets
test_sgmllib
test_sha
test_shelve
test_shlex
test_shutil
test_signal
test_site
test_slice
test_smtplib
test_socket
test_socket_ssl
/tmp/python-test/local/lib/python2.6/test/test_socket_ssl.py:97: DeprecationWarning: socket.ssl() is deprecated.  Use ssl.wrap_socket() instead.
  ssl_sock = socket.ssl(s)
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 -- cannot import name startfile
test_str
test_strftime
test_string
test_stringprep
test_strop
test_strptime
test_struct
test_structmembers
test_structseq
test_subprocess
[7355 refs]
[7353 refs]
[7355 refs]
[7355 refs]
[7355 refs]
[7355 refs]
[7355 refs]
[7355 refs]
[7355 refs]
[7355 refs]
[7353 refs]
[8966 refs]
[7571 refs]
[7356 refs]
[7355 refs]
[7355 refs]
[7355 refs]
[7355 refs]
[7355 refs]
.
[7355 refs]
[7355 refs]
    this bit of output is from a test of stdout in a different process ...
[7355 refs]
[7355 refs]
[7571 refs]
test_sunaudiodev
test_sunaudiodev skipped -- No module named sunaudiodev
test_sundry
test_symtable
test_syntax
test_sys
[7355 refs]
[7355 refs]
test_tarfile
test_tcl
test_tcl skipped -- No module named _tkinter
test_telnetlib
test_tempfile
[7359 refs]
test_textwrap
test_thread
test_threaded_import
test_threadedtempfile
test_threading
test_threading_local
test_threadsignals
test_time
test_timeout
test_timeout skipped -- Use of the `network' resource not enabled
test_tokenize
test_trace
test_traceback
test_transformer
test_tuple
test test_tuple failed -- Traceback (most recent call last):
  File "/tmp/python-test/local/lib/python2.6/test/test_tuple.py", line 76, in test_repr
    self.assertEqual(repr(a0), "()")
AssertionError: '(...)' != '()'

test_typechecks
test_ucn
test_unary
test_unicode
test_unicode_file
test_unicode_file skipped -- No Unicode filesystem semantics on this platform.
test_unicodedata
test_univnewlines
test_unpack
test_urllib
test_urllib2
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
    WARNING: uuid.getnode is unreliable on many platforms.
        It is disabled until the code and/or test can be fixed properly.
    WARNING: uuid._ifconfig_getnode is unreliable on many platforms.
        It is disabled until the code and/or test can be fixed properly.
    WARNING: uuid._unixdll_getnode is unreliable on many platforms.
        It is disabled until the code and/or test can be fixed properly.
test_wait3
test_wait4
test_warnings
test_wave
test_weakref
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_xrange
test_zipfile
test_zipfile64
test_zipfile64 skipped -- test requires loads of disk-space bytes and a long time to run
test_zipimport
test_zlib
287 tests OK.
10 tests failed:
    test_atexit test_builtin test_code test_collections test_extcall
    test_generators test_inspect test_pep352 test_pprint test_tuple
35 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_imageop test_imgfile test_ioctl test_linuxaudiodev
    test_macostools test_normalization test_ossaudiodev test_pep277
    test_plistlib test_scriptpackages test_socketserver test_startfile
    test_sunaudiodev test_tcl test_timeout test_unicode_file
    test_urllib2net test_urllibnet test_winreg test_winsound
    test_zipfile64
1 skip unexpected on linux2:
    test_ioctl
[506640 refs]


More information about the Python-checkins mailing list