tests failing on python 3.2

Bug #1090702 reported by Robert Collins
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
testtools
Fix Released
Critical
Robert Collins

Bug Description

(testtools-3.2)robertc@lifeless-64:~/source/unittest/testtools/working$ make check
PYTHONPATH=/home/robertc/source/unittest/testtools/working python -m testtools.run testtools.tests.test_suite
Tests running...
======================================================================
ERROR: testtools.tests.test_content.TestContent.test_from_file_with_simple_seek
----------------------------------------------------------------------
Traceback (most recent call last):
  File "testtools/tests/test_content.py", line 130, in test_from_file_with_simple_seek
    f.write('some data')
TypeError: 'str' does not support the buffer interface
======================================================================
ERROR: testtools.tests.test_content.TestContent.test_from_file_with_whence_seek
----------------------------------------------------------------------
Traceback (most recent call last):
  File "testtools/tests/test_content.py", line 140, in test_from_file_with_whence_seek
    f.write('some data')
TypeError: 'str' does not support the buffer interface
======================================================================
ERROR: testtools.tests.test_content.TestContent.test_from_stream_with_whence_seek
----------------------------------------------------------------------
Traceback (most recent call last):
  File "testtools/tests/test_content.py", line 184, in test_from_stream_with_whence_seek
    list(content.iter_bytes()), Equals(['data']))
  File "testtools/content.py", line 45, in _iter_chunks
    stream.seek(seek_offset, seek_whence)
IOError: Can't do nonzero cur-relative seeks

Ran 986 tests in 0.219s
FAILED (failures=3)
make: *** [check] Error 1

Changed in testtools:
status: New → Triaged
importance: Undecided → Critical
Changed in testtools:
milestone: none → next
status: Triaged → Fix Committed
assignee: nobody → Robert Collins (lifeless)
Changed in testtools:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.