[Python-Dev] Newish test failures

Tim Peters tim.peters at gmail.com
Wed Apr 20 20:10:58 CEST 2005


Seeing three seemingly related test failures today, on CVS HEAD:

test_csv
test test_csv failed -- errors occurred; run in verbose mode for details
test_descr
test test_descr crashed -- exceptions.AttributeError: attribute
'__dict__' of 'type' objects is not writable
test_file
test test_file crashed -- exceptions.AttributeError: attribute
'closed' of 'file' objects is not writable
3 tests failed:
    test_csv test_descr test_file

Drilling into test_csv:

ERROR: test_reader_attrs (test.test_csv.Test_Csv)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\Code\python\lib\test\test_csv.py", line 62, in test_reader_attrs
    self._test_default_attrs(csv.reader, [])
  File "C:\Code\python\lib\test\test_csv.py", line 58, in _test_default_attrs
    self.assertRaises(TypeError, delattr, obj.dialect, 'quoting')
  File "C:\Code\python\lib\unittest.py", line 320, in failUnlessRaises
    callableObj(*args, **kwargs)
AttributeError: attribute 'quoting' of '_csv.Dialect' objects is not writable

======================================================================
ERROR: test_writer_attrs (test.test_csv.Test_Csv)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\Code\python\lib\test\test_csv.py", line 65, in test_writer_attrs
    self._test_default_attrs(csv.writer, StringIO())
  File "C:\Code\python\lib\test\test_csv.py", line 58, in _test_default_attrs
    self.assertRaises(TypeError, delattr, obj.dialect, 'quoting')
  File "C:\Code\python\lib\unittest.py", line 320, in failUnlessRaises
    callableObj(*args, **kwargs)
AttributeError: attribute 'quoting' of '_csv.Dialect' objects is not writable


More information about the Python-Dev mailing list