[Python-3000] Four new failing tests

Guido van Rossum guido at python.org
Sat Aug 11 19:53:02 CEST 2007


I see four tests fail that passed yesterday:

< test_csv
< test_shelve
< test_threaded_import
< test_wsgiref

Details:

test_csv: one error
======================================================================
ERROR: test_char_write (__main__.TestArrayWrites)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "Lib/test/test_csv.py", line 648, in test_char_write
    a = array.array('u', string.letters)
ValueError: string length not a multiple of item size

test_shelve: 9 error, last:
======================================================================
ERROR: test_write (__main__.TestProto2FileShelve)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/local/google/home/guido/python/py3k/Lib/test/mapping_tests.py",
line 118, in test_write
    self.failIf(knownkey in d)
  File "/usr/local/google/home/guido/python/py3k/Lib/shelve.py", line
92, in __contains__
    return key.encode(self.keyencoding) in self.dict
TypeError: gdbm key must be string, not bytes

test_threaded_import:
Trying 20 threads ... OK.
Trying 50 threads ... OK.
Trying 20 threads ... OK.
Trying 50 threads ... OK.
Trying 20 threads ... OK.
Trying 50 threads ... OK.
Traceback (most recent call last):
  File "Lib/test/test_threaded_import.py", line 75, in <module>
    test_main()
  File "Lib/test/test_threaded_import.py", line 72, in test_main
    test_import_hangers()
  File "Lib/test/test_threaded_import.py", line 36, in test_import_hangers
    raise TestFailed(test.threaded_import_hangers.errors)
test.test_support.TestFailed: ['tempfile.TemporaryFile appeared to hang']
testing import hangers ... [54531 refs]

test_wsgiref: 3 errors, last:
======================================================================
ERROR: test_validated_hello (__main__.IntegrationTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "Lib/test/test_wsgiref.py", line 145, in test_validated_hello
    out, err = run_amock(validator(hello_app))
  File "Lib/test/test_wsgiref.py", line 58, in run_amock
    server.finish_request((inp, out), ("127.0.0.1",8888))
  File "/usr/local/google/home/guido/python/py3k/Lib/SocketServer.py",
line 254, in finish_request
    self.RequestHandlerClass(request, client_address, self)
  File "/usr/local/google/home/guido/python/py3k/Lib/SocketServer.py",
line 522, in __init__
    self.handle()
  File "/usr/local/google/home/guido/python/py3k/Lib/wsgiref/simple_server.py",
line 131, in handle
    if not self.parse_request(): # An error code has been sent, just exit
  File "/usr/local/google/home/guido/python/py3k/Lib/BaseHTTPServer.py",
line 283, in parse_request
    text = io.TextIOWrapper(self.rfile)
  File "/usr/local/google/home/guido/python/py3k/Lib/io.py", line 975,
in __init__
    encoding = os.device_encoding(buffer.fileno())
  File "/usr/local/google/home/guido/python/py3k/Lib/io.py", line 576, in fileno
    return self.raw.fileno()
  File "/usr/local/google/home/guido/python/py3k/Lib/io.py", line 299, in fileno
    self._unsupported("fileno")
  File "/usr/local/google/home/guido/python/py3k/Lib/io.py", line 185,
in _unsupported
    (self.__class__.__name__, name))
io.UnsupportedOperation: BytesIO.fileno() not supported


-- 
--Guido van Rossum (home page: http://www.python.org/~guido/)


More information about the Python-3000 mailing list