[issue18350] Python 3 unittest framework broken?

2013-07-03 Thread Boštjan Mejak

New submission from Boštjan Mejak:

I fired up the test suite runtests.py of wxPython Phoenix and I get this:

File C:\Program Files\Python 3.3.2\lib\unittest\runner.py, line 63, in 
addSuccess
self.stream.write('.')
TypeError: 'str' does not support the buffer interface

Can you confirm whether this is a bug in the unittest framework on the Python 
side or in the wxPython Phoenix source code side?

--
components: Tests
messages: 192226
nosy: bostjan.mejak
priority: normal
severity: normal
status: open
title: Python 3 unittest framework broken?
type: crash
versions: Python 3.3

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18350
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18350] Python 3 unittest framework broken?

2013-07-03 Thread Amaury Forgeot d'Arc

Amaury Forgeot d'Arc added the comment:

wxPython tests override unittest.TextTestRunner:
self.stream = unittest.runner._WritelnDecorator(BytesIO())

Using bytes is wrong. Output stream should be a text file.

--
nosy: +amaury.forgeotdarc
resolution:  - invalid
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18350
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18350] Python 3 unittest framework broken?

2013-07-03 Thread Boštjan Mejak

Boštjan Mejak added the comment:

So how exactly can this critical line of code (that you posted) be fixed to 
make running wxPython Phoenix tests work?

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18350
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18350] Python 3 unittest framework broken?

2013-07-03 Thread Amaury Forgeot d'Arc

Amaury Forgeot d'Arc added the comment:

This is an issue with wxPython, please report this issue to the wxPython team.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18350
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18350] Python 3 unittest framework broken?

2013-07-03 Thread Boštjan Mejak

Boštjan Mejak added the comment:

By output stream should be a text file, have you ment the line should be

self.stream = unittest.runner._WriteInDecorator(StringIO())

Can you provide me a little hint so that I can make a patch for the wxPython 
team?

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18350
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18350] Python 3 unittest framework broken?

2013-07-03 Thread Amaury Forgeot d'Arc

Amaury Forgeot d'Arc added the comment:

Sorry, this bug tracker is for core Python only. Please discuss this issue on 
wxPython-dev mailing list.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18350
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com