New submission from holger krekel <holger.kre...@gmail.com>:

Running the attached file with python3.1.1 works fine, all assertions pass.  
Running it with 3.1.2 gives me this output: 

$ python3.1.2/bin/python3.1 stringio_fail.py
Traceback (most recent call last):
  File "stringio_fail.py", line 12, in <module>
    assert s == "world", repr(s)
AssertionError: '\x00\x00\x00\x00\x00world'

----------
components: IO
files: stringio_fail.py
messages: 104423
nosy: hpk
priority: normal
severity: normal
status: open
title: StringIO().truncate causes zero-bytes in getvalue()
type: behavior
versions: Python 3.1
Added file: http://bugs.python.org/file17116/stringio_fail.py

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue8558>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to