(view as text)
make buildbottest
 in dir /home/buildslave/python-trunk/trunk.norwitz-x86/build (timeout 1800 secs)
 argv: ['make', 'buildbottest']
 environment: {'SHELL': '/bin/sh', 'SHLVL': '1', 'PWD': '/home/buildslave', 'LOGNAME': 'buildslave', 'USER': 'buildslave', 'PATH': '/usr/bin:/bin', 'HOME': '/home/buildslave', '_': '/usr/bin/buildbot'}
running build
running build_ext
INFO: Can't locate Tcl/Tk libs and/or headers

Failed to find the necessary bits to build these modules:
_tkinter          bsddb185          sunaudiodev    
To find the necessary bits, look in setup.py in detect_modules() for the module's name.

running build_scripts
[43240 refs]
./python -E -c 'import sys ; from distutils.util import get_platform ; print get_platform()+"-"+sys.version[0:3]' >platform
[10513 refs]
./python -E -tt ./Lib/test/regrtest.py -l  -uall -rw
test_fractions
test_isinstance
test_peepholer
test_select
test_struct
test_aepack
test_aepack skipped -- No module named aepack
test_thread
test_ioctl
test_scope
test_exceptions
test_cmd_line
test_imp
test_iterlen
test_enumerate
test_imageop
test_imageop skipped -- No module named imgfile
test_linuxaudiodev
test_linuxaudiodev skipped -- (2, 'No such file or directory', '/dev/dsp')
test_xmlrpc
test_parser
Expecting 's_push: parser stack overflow' in next line
s_push: parser stack overflow
test_StringIO
test_doctest2
test_optparse
test_codecmaps_jp
test_io
test_trace
test_fnmatch
test_kqueue
test_kqueue skipped -- test works only on BSD
test_sets
test_audioop
test_cd
test_cd skipped -- No module named cd
test_scriptpackages
test_scriptpackages skipped -- No module named aetools
test_gzip
test_signal
test_mailbox
test_imaplib
test_gdbm
test_decorators
test_eof
test_base64
test_dummy_thread
test_profile
test_softspace
test_unary
test_ucn
test_lib2to3
test_inspect
test_xpickle
test_datetime
test_complex_args
test_codecencodings_cn
test_doctest
test_charmapcodec
test_mimetypes
test_quopri
[13005 refs]
[13005 refs]
test_zipimport
test_getargs
test_zlib
test_shlex
test_hashlib
test_applesingle
test_applesingle skipped -- No module named macostools
test_cmd
test_contains
test_types
test_zipfile64
test_zipfile64 skipped -- test requires loads of disk-space bytes and a long time to run
test_pow
test_wait4
test_hmac
test_timeout
test_copyreg
test_dl
test_curses
test_curses skipped -- $TERM=None, calling initscr() may cause exit
test_docxmlrpc
test_epoll
test_epoll skipped -- kernel doesn't support epoll()
test_file
test_threading
[13689 refs]
[16448 refs]
test_site
[10513 refs]
[10513 refs]
[10513 refs]
[10513 refs]
test_fcntl
test_collections
test_codecencodings_jp
test_pep277
test_pep277 skipped -- test works only on NT+
test_format
test_mutants
test_cprofile
test_xdrlib
test_str
test_dbm
test_pipes
test_pyexpat
test_al
test_al skipped -- No module named al
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_xrange
test_json
test_poplib
test_distutils
Using PyPI login from /home/buildslave/python-trunk/trunk.norwitz-x86/build/Lib/distutils/tests/.pypirc
Using PyPI login from /home/buildslave/python-trunk/trunk.norwitz-x86/build/Lib/distutils/tests/.pypirc
Using PyPI login from /home/buildslave/python-trunk/trunk.norwitz-x86/build/Lib/distutils/tests/.pypirc
Using PyPI login from /home/buildslave/python-trunk/trunk.norwitz-x86/build/Lib/distutils/tests/.pypirc
Using PyPI login from /home/buildslave/python-trunk/trunk.norwitz-x86/build/Lib/distutils/tests/.pypirc
test_strop
test_deque
test_codecmaps_hk
test_importhooks
test_bastion
test_exception_variations
test_call
test_traceback
test_funcattrs
test_coding
test_multibytecodec_support
test_threading_local
test_bytes
test_property
test_dict
test_email_codecs
test_descrtut
test_ctypes
test_posixpath
test_bsddb3
test_index
test_popen2
test_runpy
test_sys
[10513 refs]
[10513 refs]
test_transformer
test_print
test_unicodedata
test_sqlite
test_opcodes
test_complex
test_defaultdict
test_hotshot
test_locale
test_abstract_numbers
test_frozen
test_posix
test_binhex
test_uu
test_future4
test_contextlib
test_codecmaps_tw
test_queue
test___all__
test_longexp
test_compiler
  testCompileLibrary still working, be patient...
test_SimpleHTTPServer
test_fileinput
test_bufio
test_cl
test_cl skipped -- No module named cl
test_re
test_sgmllib
test_stringprep
test_pep352
test_cfgparser
test_shutil
test_set
test_dircache
test_getopt
test_descr
test___future__
test_future
test_grp
test_userstring
test_code
test_socket_ssl
test_hash
test_plistlib
test_gettext
test_augassign
test_telnetlib
test_coercion
test_undocumented_details
test_warnings
test_urlparse
test_extcall
test_long
test_univnewlines
test_userdict
test_wave
test_sundry
test_codeccallbacks
test_unicode_file
test_unicode_file skipped -- No Unicode filesystem semantics on this platform.
test_crypt
test_urllibnet
test_urllib
test_asynchat
test_bool
test_pkgutil
test_genericpath
test_strptime
test_codeop
test_tuple
test_winreg
test_winreg skipped -- No module named _winreg
test_codecmaps_cn
test_modulefinder
test_cmath
test_sunaudiodev
test_sunaudiodev skipped -- No module named sunaudiodev
test_userlist
test_fork1
test_logging
test_glob
test_htmllib
test_builtin
test_openpty
test_pickletools
**********************************************************************
File "/home/buildslave/python-trunk/trunk.norwitz-x86/build/Lib/pickletools.py", line ?, in pickletools.__test__.disassembler_test
Failed example:
    dis(pickle.dumps(random.random, 0))
Expected:
        0: c    GLOBAL     'random random'
       15: p    PUT        0
       18: .    STOP
    highest protocol among opcodes = 0
Got:
        0: c    GLOBAL     'bsddb.test.test_thread random'
       31: p    PUT        0
       34: .    STOP
    highest protocol among opcodes = 0
**********************************************************************
1 items had failures:
   1 of  25 in pickletools.__test__.disassembler_test
***Test Failed*** 1 failures.
test test_pickletools failed -- 1 of 95 doctests failed
test_copy
test_rfc822
test_compile
test_sax
test_tokenize
test_iter
test_csv
test_marshal
test_MimeWriter
test_syntax
test_bigaddrspace
test_module
test_pwd
test_tcl
test_tcl skipped -- No module named _tkinter
test_errno
test_pickle
test_largefile
test_xml_etree_c
test_class
test_old_mailbox
test_functools
test_wsgiref
test_bsddb
test_filecmp
test_subprocess
[10513 refs]
[10513 refs]
[10513 refs]
[10513 refs]
[10513 refs]
[10513 refs]
[10513 refs]
[10513 refs]
[10513 refs]
[10513 refs]
[10513 refs]
[10513 refs]
[10731 refs]
[10513 refs]
[10513 refs]
[10513 refs]
[10513 refs]
[10513 refs]
[10513 refs]
.
[10513 refs]
[10513 refs]
    this bit of output is from a test of stdout in a different process ...
[10513 refs]
[10513 refs]
[10731 refs]
test_nis
test_list
test_binop
test_popen
[10518 refs]
[10518 refs]
[10518 refs]
test_fpformat
test_whichdb
test_threadedtempfile
test_codecencodings_tw
test_macostools
test_macostools skipped -- No module named macostools
test_new
test_bigmem
test_mutex
test_compare
test_tarfile
test_normalization
test_dumbdbm
test_socket
test_symtable
test_buffer
test_genexps
test_bisect
test_atexit
test_gl
test_gl skipped -- No module named gl
test_getargs2
test__locale
test_structmembers
test_difflib
test_codecs
test_gc
test_string
test_htmlparser
test_mmap
test_random
test_codecmaps_kr
test_profilehooks
test_socketserver
test_operator
test_abc
test_commands
test_codecencodings_kr
test_richcmp
test_unicode
test_ossaudiodev
test_ossaudiodev skipped -- [Errno 2] No such file or directory: '/dev/dsp'
test_strftime
test_zipfile
test_pep247
test_long_future
test_threadsignals
test_unittest
test_future_builtins
test_urllib2_localnet
test_md5
test_cookielib
test_binascii
test_int
test_pyclbr
test_sort
test_minidom
test_ftplib
test_platform
test_winsound
test_winsound skipped -- No module named winsound
test_decimal
test_bsddb185
test_bsddb185 skipped -- No module named bsddb185
test_cmd_line_script
test_httplib
test_cgi
test_unpack
test_urllib2net
test_multifile
test_grammar
test_memoryio
test_time
test_shelve
test_capi
test_mhlib
test_resource
test_with
test_poll
test_math
test_macpath
test_itertools
test_robotparser
test_email
test_bz2
test_typechecks
test_pkgimport
test_threaded_import
test_generators
test_ntpath
test_netrc
test_colorsys
test_smtplib
test_pkg
test_weakref
test_pydoc
test_mimetools
test_repr
test_asyncore
test_global
test_dis
test_imgfile
test_imgfile skipped -- No module named imgfile
test_pep292
test_py3kwarn
test_py3kwarn skipped -- test.test_py3kwarn must be run with the -3 flag
test_pep263
test_future3
test_heapq
test_multibytecodec
test_pprint
test_startfile
test_startfile skipped -- cannot import name startfile
test_pty
test_textwrap
test_cpickle
test_wait3
test_ast
test_array
test_xmllib
test_dummy_threading
test_urllib2
test_codecencodings_hk
test_sha
test_calendar
test_float
test_ssl
test_slice
test_anydbm
test_xml_etree
test_pstats
test_import
test_email_renamed
test_tempfile
[10513 refs]
test_cookie
test_int_literal
test_structseq
test_os
331 tests OK.
1 test failed:
    test_pickletools
25 tests skipped:
    test_aepack test_al test_applesingle test_bsddb185 test_cd test_cl
    test_curses test_epoll test_gl test_imageop test_imgfile
    test_kqueue test_linuxaudiodev test_macostools test_ossaudiodev
    test_pep277 test_py3kwarn test_scriptpackages test_startfile
    test_sunaudiodev test_tcl test_unicode_file test_winreg
    test_winsound test_zipfile64
2 skips unexpected on linux2:
    test_tcl test_epoll
Re-running failed tests in verbose mode
Re-running test 'test_pickletools' in verbose mode
test_callapi (test.test_pickletools.OptimizedPickleTests) ... ok
test_dict_chunking (test.test_pickletools.OptimizedPickleTests) ... ok
test_dump_closed_file (test.test_pickletools.OptimizedPickleTests) ... ok
test_float_format (test.test_pickletools.OptimizedPickleTests) ... ok
test_garyp (test.test_pickletools.OptimizedPickleTests) ... ok
test_getinitargs (test.test_pickletools.OptimizedPickleTests) ... ok
test_global_ext1 (test.test_pickletools.OptimizedPickleTests) ... ok
test_global_ext2 (test.test_pickletools.OptimizedPickleTests) ... ok
test_global_ext4 (test.test_pickletools.OptimizedPickleTests) ... ok
test_highest_protocol (test.test_pickletools.OptimizedPickleTests) ... ok
test_insecure_strings (test.test_pickletools.OptimizedPickleTests) ... ok
test_ints (test.test_pickletools.OptimizedPickleTests) ... ok
test_list_chunking (test.test_pickletools.OptimizedPickleTests) ... ok
test_load_closed_file (test.test_pickletools.OptimizedPickleTests) ... ok
test_load_from_canned_string (test.test_pickletools.OptimizedPickleTests) ... ok
test_long (test.test_pickletools.OptimizedPickleTests) ... ok
test_long1 (test.test_pickletools.OptimizedPickleTests) ... ok
test_long4 (test.test_pickletools.OptimizedPickleTests) ... ok
test_maxint64 (test.test_pickletools.OptimizedPickleTests) ... ok
test_metaclass (test.test_pickletools.OptimizedPickleTests) ... ok
test_misc (test.test_pickletools.OptimizedPickleTests) ... ok
test_newobj_generic (test.test_pickletools.OptimizedPickleTests) ... ok
test_newobj_list (test.test_pickletools.OptimizedPickleTests) ... ok
test_newobj_list_slots (test.test_pickletools.OptimizedPickleTests) ... ok
test_newobj_tuple (test.test_pickletools.OptimizedPickleTests) ... ok
test_proto (test.test_pickletools.OptimizedPickleTests) ... ok
test_recursive_dict (test.test_pickletools.OptimizedPickleTests) ... ok
test_recursive_inst (test.test_pickletools.OptimizedPickleTests) ... ok
test_recursive_list (test.test_pickletools.OptimizedPickleTests) ... ok
test_recursive_multi (test.test_pickletools.OptimizedPickleTests) ... ok
test_reduce (test.test_pickletools.OptimizedPickleTests) ... ok
test_reduce_calls_base (test.test_pickletools.OptimizedPickleTests) ... ok
test_reduce_ex_called (test.test_pickletools.OptimizedPickleTests) ... ok
test_reduce_ex_calls_base (test.test_pickletools.OptimizedPickleTests) ... ok
test_reduce_ex_overrides_reduce (test.test_pickletools.OptimizedPickleTests) ... ok
test_reduce_overrides_default_reduce_ex (test.test_pickletools.OptimizedPickleTests) ... ok
test_roundtrip_equality (test.test_pickletools.OptimizedPickleTests) ... ok
test_short_tuples (test.test_pickletools.OptimizedPickleTests) ... ok
test_simple_newobj (test.test_pickletools.OptimizedPickleTests) ... ok
test_singletons (test.test_pickletools.OptimizedPickleTests) ... ok
test_structseq (test.test_pickletools.OptimizedPickleTests) ... ok
test_unicode (test.test_pickletools.OptimizedPickleTests) ... ok

----------------------------------------------------------------------
Ran 42 tests in 1.681s

OK
Trying:
    import pickle
Expecting nothing
ok
Trying:
    from StringIO import StringIO
Expecting nothing
ok
Trying:
    f = StringIO()
Expecting nothing
ok
Trying:
    p = pickle.Pickler(f, 2)
Expecting nothing
ok
Trying:
    x = [1, 2, 3]
Expecting nothing
ok
Trying:
    p.dump(x)
Expecting nothing
ok
Trying:
    p.dump(x)
Expecting nothing
ok
Trying:
    f.seek(0)
Expecting nothing
ok
Trying:
    memo = {}
Expecting nothing
ok
Trying:
    dis(f, memo=memo)
Expecting:
        0: \x80 PROTO      2
        2: ]    EMPTY_LIST
        3: q    BINPUT     0
        5: (    MARK
        6: K        BININT1    1
        8: K        BININT1    2
       10: K        BININT1    3
       12: e        APPENDS    (MARK at 5)
       13: .    STOP
    highest protocol among opcodes = 2
ok
Trying:
    dis(f, memo=memo)
Expecting:
       14: \x80 PROTO      2
       16: h    BINGET     0
       18: .    STOP
    highest protocol among opcodes = 2
ok
Trying:
    import pickle
Expecting nothing
ok
Trying:
    x = [1, 2, (3, 4), {'abc': u"def"}]
Expecting nothing
ok
Trying:
    pkl = pickle.dumps(x, 0)
Expecting nothing
ok
Trying:
    dis(pkl)
Expecting:
        0: (    MARK
        1: l        LIST       (MARK at 0)
        2: p    PUT        0
        5: I    INT        1
        8: a    APPEND
        9: I    INT        2
       12: a    APPEND
       13: (    MARK
       14: I        INT        3
       17: I        INT        4
       20: t        TUPLE      (MARK at 13)
       21: p    PUT        1
       24: a    APPEND
       25: (    MARK
       26: d        DICT       (MARK at 25)
       27: p    PUT        2
       30: S    STRING     'abc'
       37: p    PUT        3
       40: V    UNICODE    u'def'
       45: p    PUT        4
       48: s    SETITEM
       49: a    APPEND
       50: .    STOP
    highest protocol among opcodes = 0
ok
Trying:
    pkl = pickle.dumps(x, 1)
Expecting nothing
ok
Trying:
    dis(pkl)
Expecting:
        0: ]    EMPTY_LIST
        1: q    BINPUT     0
        3: (    MARK
        4: K        BININT1    1
        6: K        BININT1    2
        8: (        MARK
        9: K            BININT1    3
       11: K            BININT1    4
       13: t            TUPLE      (MARK at 8)
       14: q        BINPUT     1
       16: }        EMPTY_DICT
       17: q        BINPUT     2
       19: U        SHORT_BINSTRING 'abc'
       24: q        BINPUT     3
       26: X        BINUNICODE u'def'
       34: q        BINPUT     4
       36: s        SETITEM
       37: e        APPENDS    (MARK at 3)
       38: .    STOP
    highest protocol among opcodes = 1
ok
Trying:
    import random
Expecting nothing
ok
Trying:
    dis(pickle.dumps(random.random, 0))
Expecting:
        0: c    GLOBAL     'random random'
       15: p    PUT        0
       18: .    STOP
    highest protocol among opcodes = 0
**********************************************************************
File "/home/buildslave/python-trunk/trunk.norwitz-x86/build/Lib/pickletools.py", line ?, in pickletools.__test__.disassembler_test
Failed example:
    dis(pickle.dumps(random.random, 0))
Expected:
        0: c    GLOBAL     'random random'
       15: p    PUT        0
       18: .    STOP
    highest protocol among opcodes = 0
Got:
        0: c    GLOBAL     'bsddb.test.test_thread random'
       31: p    PUT        0
       34: .    STOP
    highest protocol among opcodes = 0
Trying:
    from pickletools import _Example
Expecting nothing
ok
Trying:
    x = [_Example(42)] * 2
Expecting nothing
ok
Trying:
    dis(pickle.dumps(x, 0))
Expecting:
        0: (    MARK
        1: l        LIST       (MARK at 0)
        2: p    PUT        0
        5: (    MARK
        6: i        INST       'pickletools _Example' (MARK at 5)
       28: p    PUT        1
       31: (    MARK
       32: d        DICT       (MARK at 31)
       33: p    PUT        2
       36: S    STRING     'value'
       45: p    PUT        3
       48: I    INT        42
       52: s    SETITEM
       53: b    BUILD
       54: a    APPEND
       55: g    GET        1
       58: a    APPEND
       59: .    STOP
    highest protocol among opcodes = 0
ok
Trying:
    dis(pickle.dumps(x, 1))
Expecting:
        0: ]    EMPTY_LIST
        1: q    BINPUT     0
        3: (    MARK
        4: (        MARK
        5: c            GLOBAL     'pickletools _Example'
       27: q            BINPUT     1
       29: o            OBJ        (MARK at 4)
       30: q        BINPUT     2
       32: }        EMPTY_DICT
       33: q        BINPUT     3
       35: U        SHORT_BINSTRING 'value'
       42: q        BINPUT     4
       44: K        BININT1    42
       46: s        SETITEM
       47: b        BUILD
       48: h        BINGET     2
       50: e        APPENDS    (MARK at 3)
       51: .    STOP
    highest protocol among opcodes = 1
ok
Trying:
    L = []
Expecting nothing
ok
Trying:
    T = L,
Expecting nothing
ok
Trying:
    L.append(T)
Expecting nothing
ok
Trying:
    L[0] is T
Expecting:
    True
ok
Trying:
    T[0] is L
Expecting:
    True
ok
Trying:
    L[0][0] is L
Expecting:
    True
ok
Trying:
    T[0][0] is T
Expecting:
    True
ok
Trying:
    dis(pickle.dumps(L, 0))
Expecting:
        0: (    MARK
        1: l        LIST       (MARK at 0)
        2: p    PUT        0
        5: (    MARK
        6: g        GET        0
        9: t        TUPLE      (MARK at 5)
       10: p    PUT        1
       13: a    APPEND
       14: .    STOP
    highest protocol among opcodes = 0
ok
Trying:
    dis(pickle.dumps(L, 1))
Expecting:
        0: ]    EMPTY_LIST
        1: q    BINPUT     0
        3: (    MARK
        4: h        BINGET     0
        6: t        TUPLE      (MARK at 3)
        7: q    BINPUT     1
        9: a    APPEND
       10: .    STOP
    highest protocol among opcodes = 1
ok
Trying:
    dis(pickle.dumps(T, 0))
Expecting:
        0: (    MARK
        1: (        MARK
        2: l            LIST       (MARK at 1)
        3: p        PUT        0
        6: (        MARK
        7: g            GET        0
       10: t            TUPLE      (MARK at 6)
       11: p        PUT        1
       14: a        APPEND
       15: 0        POP
       16: 0        POP        (MARK at 0)
       17: g    GET        1
       20: .    STOP
    highest protocol among opcodes = 0
ok
Trying:
    dis(pickle.dumps(T, 1))
Expecting:
        0: (    MARK
        1: ]        EMPTY_LIST
        2: q        BINPUT     0
        4: (        MARK
        5: h            BINGET     0
        7: t            TUPLE      (MARK at 4)
        8: q        BINPUT     1
       10: a        APPEND
       11: 1        POP_MARK   (MARK at 0)
       12: h    BINGET     1
       14: .    STOP
    highest protocol among opcodes = 1
ok
Trying:
    dis(pickle.dumps(L, 2))
Expecting:
        0: \x80 PROTO      2
        2: ]    EMPTY_LIST
        3: q    BINPUT     0
        5: h    BINGET     0
        7: \x85 TUPLE1
        8: q    BINPUT     1
       10: a    APPEND
       11: .    STOP
    highest protocol among opcodes = 2
ok
Trying:
    dis(pickle.dumps(T, 2))
Expecting:
        0: \x80 PROTO      2
        2: ]    EMPTY_LIST
        3: q    BINPUT     0
        5: h    BINGET     0
        7: \x85 TUPLE1
        8: q    BINPUT     1
       10: a    APPEND
       11: 0    POP
       12: h    BINGET     1
       14: .    STOP
    highest protocol among opcodes = 2
ok
Trying:
    import StringIO
Expecting nothing
ok
Trying:
    read_decimalnl_long(StringIO.StringIO("1234\n56"))
Expecting:
    Traceback (most recent call last):
    ...
    ValueError: trailing 'L' required in '1234'
ok
Trying:
    read_decimalnl_long(StringIO.StringIO("1234L\n56"))
Expecting:
    1234L
ok
Trying:
    read_decimalnl_long(StringIO.StringIO("123456789012345678901234L\n6"))
Expecting:
    123456789012345678901234L
ok
Trying:
    import StringIO
Expecting nothing
ok
Trying:
    read_decimalnl_short(StringIO.StringIO("1234\n56"))
Expecting:
    1234
ok
Trying:
    read_decimalnl_short(StringIO.StringIO("1234L\n56"))
Expecting:
    Traceback (most recent call last):
    ...
    ValueError: trailing 'L' not allowed in '1234L'
ok
Trying:
    import StringIO, struct
Expecting nothing
ok
Trying:
    raw = struct.pack(">d", -1.25)
Expecting nothing
ok
Trying:
    raw
Expecting:
    '\xbf\xf4\x00\x00\x00\x00\x00\x00'
ok
Trying:
    read_float8(StringIO.StringIO(raw + "\n"))
Expecting:
    -1.25
ok
Trying:
    import StringIO
Expecting nothing
ok
Trying:
    read_floatnl(StringIO.StringIO("-1.25\n6"))
Expecting:
    -1.25
ok
Trying:
    import StringIO
Expecting nothing
ok
Trying:
    read_int4(StringIO.StringIO('\xff\x00\x00\x00'))
Expecting:
    255
ok
Trying:
    read_int4(StringIO.StringIO('\x00\x00\x00\x80')) == -(2**31)
Expecting:
    True
ok
Trying:
    import StringIO
Expecting nothing
ok
Trying:
    read_long1(StringIO.StringIO("\x00"))
Expecting:
    0L
ok
Trying:
    read_long1(StringIO.StringIO("\x02\xff\x00"))
Expecting:
    255L
ok
Trying:
    read_long1(StringIO.StringIO("\x02\xff\x7f"))
Expecting:
    32767L
ok
Trying:
    read_long1(StringIO.StringIO("\x02\x00\xff"))
Expecting:
    -256L
ok
Trying:
    read_long1(StringIO.StringIO("\x02\x00\x80"))
Expecting:
    -32768L
ok
Trying:
    import StringIO
Expecting nothing
ok
Trying:
    read_long4(StringIO.StringIO("\x02\x00\x00\x00\xff\x00"))
Expecting:
    255L
ok
Trying:
    read_long4(StringIO.StringIO("\x02\x00\x00\x00\xff\x7f"))
Expecting:
    32767L
ok
Trying:
    read_long4(StringIO.StringIO("\x02\x00\x00\x00\x00\xff"))
Expecting:
    -256L
ok
Trying:
    read_long4(StringIO.StringIO("\x02\x00\x00\x00\x00\x80"))
Expecting:
    -32768L
ok
Trying:
    read_long1(StringIO.StringIO("\x00\x00\x00\x00"))
Expecting:
    0L
ok
Trying:
    import StringIO
Expecting nothing
ok
Trying:
    read_string1(StringIO.StringIO("\x00"))
Expecting:
    ''
ok
Trying:
    read_string1(StringIO.StringIO("\x03abcdef"))
Expecting:
    'abc'
ok
Trying:
    import StringIO
Expecting nothing
ok
Trying:
    read_string4(StringIO.StringIO("\x00\x00\x00\x00abc"))
Expecting:
    ''
ok
Trying:
    read_string4(StringIO.StringIO("\x03\x00\x00\x00abcdef"))
Expecting:
    'abc'
ok
Trying:
    read_string4(StringIO.StringIO("\x00\x00\x00\x03abcdef"))
Expecting:
    Traceback (most recent call last):
    ...
    ValueError: expected 50331648 bytes in a string4, but only 6 remain
ok
Trying:
    import StringIO
Expecting nothing
ok
Trying:
    read_stringnl(StringIO.StringIO("'abcd'\nefg\n"))
Expecting:
    'abcd'
ok
Trying:
    read_stringnl(StringIO.StringIO("\n"))
Expecting:
    Traceback (most recent call last):
    ...
    ValueError: no string quotes around ''
ok
Trying:
    read_stringnl(StringIO.StringIO("\n"), stripquotes=False)
Expecting:
    ''
ok
Trying:
    read_stringnl(StringIO.StringIO("''\n"))
Expecting:
    ''
ok
Trying:
    read_stringnl(StringIO.StringIO('"abcd"'))
Expecting:
    Traceback (most recent call last):
    ...
    ValueError: no newline found when trying to read stringnl
ok
Trying:
    read_stringnl(StringIO.StringIO(r"'a\n\\b\x00c\td'" + "\n'e'"))
Expecting:
    'a\n\\b\x00c\td'
ok
Trying:
    import StringIO
Expecting nothing
ok
Trying:
    read_stringnl_noescape_pair(StringIO.StringIO("Queue\nEmpty\njunk"))
Expecting:
    'Queue Empty'
ok
Trying:
    import StringIO
Expecting nothing
ok
Trying:
    read_uint1(StringIO.StringIO('\xff'))
Expecting:
    255
ok
Trying:
    import StringIO
Expecting nothing
ok
Trying:
    read_uint2(StringIO.StringIO('\xff\x00'))
Expecting:
    255
ok
Trying:
    read_uint2(StringIO.StringIO('\xff\xff'))
Expecting:
    65535
ok
Trying:
    import StringIO
Expecting nothing
ok
Trying:
    s = u'abcd\uabcd'
Expecting nothing
ok
Trying:
    enc = s.encode('utf-8')
Expecting nothing
ok
Trying:
    enc
Expecting:
    'abcd\xea\xaf\x8d'
ok
Trying:
    n = chr(len(enc)) + chr(0) * 3  # little-endian 4-byte length
Expecting nothing
ok
Trying:
    t = read_unicodestring4(StringIO.StringIO(n + enc + 'junk'))
Expecting nothing
ok
Trying:
    s == t
Expecting:
    True
ok
Trying:
    read_unicodestring4(StringIO.StringIO(n + enc[:-1]))
Expecting:
    Traceback (most recent call last):
    ...
    ValueError: expected 7 bytes in a unicodestring4, but only 6 remain
ok
Trying:
    import StringIO
Expecting nothing
ok
Trying:
    read_unicodestringnl(StringIO.StringIO("abc\uabcd\njunk"))
Expecting:
    u'abc\uabcd'
ok
15 items had no tests:
    pickletools
    pickletools.ArgumentDescriptor
    pickletools.ArgumentDescriptor.__init__
    pickletools.OpcodeInfo
    pickletools.OpcodeInfo.__init__
    pickletools.StackObject
    pickletools.StackObject.__init__
    pickletools.StackObject.__repr__
    pickletools._Example
    pickletools._Example.__init__
    pickletools._test
    pickletools.dis
    pickletools.genops
    pickletools.optimize
    pickletools.read_stringnl_noescape
16 items passed all tests:
  11 tests in pickletools.__test__.disassembler_memo_test
   4 tests in pickletools.read_decimalnl_long
   3 tests in pickletools.read_decimalnl_short
   4 tests in pickletools.read_float8
   2 tests in pickletools.read_floatnl
   3 tests in pickletools.read_int4
   6 tests in pickletools.read_long1
   6 tests in pickletools.read_long4
   3 tests in pickletools.read_string1
   4 tests in pickletools.read_string4
   7 tests in pickletools.read_stringnl
   2 tests in pickletools.read_stringnl_noescape_pair
   2 tests in pickletools.read_uint1
   3 tests in pickletools.read_uint2
   8 tests in pickletools.read_unicodestring4
   2 tests in pickletools.read_unicodestringnl
**********************************************************************
1 items had failures:
   1 of  25 in pickletools.__test__.disassembler_test
95 tests in 32 items.
94 passed and 1 failed.
***Test Failed*** 1 failures.
*** DocTestRunner.merge: 'pickletools.StackObject.__repr__' in both testers; summing outcomes.
*** DocTestRunner.merge: 'pickletools.dis' in both testers; summing outcomes.
*** DocTestRunner.merge: 'pickletools.StackObject' in both testers; summing outcomes.
*** DocTestRunner.merge: 'pickletools.ArgumentDescriptor.__init__' in both testers; summing outcomes.
*** DocTestRunner.merge: 'pickletools._Example.__init__' in both testers; summing outcomes.
*** DocTestRunner.merge: 'pickletools.OpcodeInfo' in both testers; summing outcomes.
*** DocTestRunner.merge: 'pickletools.StackObject.__init__' in both testers; summing outcomes.
*** DocTestRunner.merge: 'pickletools.read_stringnl_noescape' in both testers; summing outcomes.
*** DocTestRunner.merge: 'pickletools.read_stringnl' in both testers; summing outcomes.
*** DocTestRunner.merge: 'pickletools.read_unicodestringnl' in both testers; summing outcomes.
*** DocTestRunner.merge: 'pickletools.read_long4' in both testers; summing outcomes.
*** DocTestRunner.merge: 'pickletools.genops' in both testers; summing outcomes.
*** DocTestRunner.merge: 'pickletools.read_int4' in both testers; summing outcomes.
*** DocTestRunner.merge: 'pickletools.read_long1' in both testers; summing outcomes.
*** DocTestRunner.merge: 'pickletools.read_stringnl_noescape_pair' in both testers; summing outcomes.
*** DocTestRunner.merge: 'pickletools._Example' in both testers; summing outcomes.
*** DocTestRunner.merge: 'pickletools.read_uint1' in both testers; summing outcomes.
*** DocTestRunner.merge: 'pickletools.read_uint2' in both testers; summing outcomes.
*** DocTestRunner.merge: 'pickletools.read_decimalnl_short' in both testers; summing outcomes.
*** DocTestRunner.merge: 'pickletools' in both testers; summing outcomes.
*** DocTestRunner.merge: 'pickletools.read_floatnl' in both testers; summing outcomes.
*** DocTestRunner.merge: 'pickletools.__test__.disassembler_memo_test' in both testers; summing outcomes.
*** DocTestRunner.merge: 'pickletools.optimize' in both testers; summing outcomes.
*** DocTestRunner.merge: 'pickletools.read_unicodestring4' in both testers; summing outcomes.
*** DocTestRunner.merge: 'pickletools._test' in both testers; summing outcomes.
*** DocTestRunner.merge: 'pickletools.ArgumentDescriptor' in both testers; summing outcomes.
*** DocTestRunner.merge: 'pickletools.read_float8' in both testers; summing outcomes.
*** DocTestRunner.merge: 'pickletools.__test__.disassembler_test' in both testers; summing outcomes.
*** DocTestRunner.merge: 'pickletools.read_string4' in both testers; summing outcomes.
*** DocTestRunner.merge: 'pickletools.OpcodeInfo.__init__' in both testers; summing outcomes.
*** DocTestRunner.merge: 'pickletools.read_decimalnl_long' in both testers; summing outcomes.
*** DocTestRunner.merge: 'pickletools.read_string1' in both testers; summing outcomes.
test test_pickletools failed -- 1 of 95 doctests failed
[641161 refs]
make: *** [buildbottest] Error 1
program finished with exit code 2