[issue17217] Fix test discovery for test_format.py on Windows

2013-02-22 Thread Ezio Melotti
Changes by Ezio Melotti : -- assignee: -> ezio.melotti resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker ___

[issue17217] Fix test discovery for test_format.py on Windows

2013-02-22 Thread Roundup Robot
Roundup Robot added the comment: New changeset 831be7dc260a by Ezio Melotti in branch '3.2': #17217: fix UnicodeEncodeErrors errors in test_format by printing ASCII only. http://hg.python.org/cpython/rev/831be7dc260a New changeset 3eb693462891 by Ezio Melotti in branch '3.3': #17217: merge with

[issue17217] Fix test discovery for test_format.py on Windows

2013-02-22 Thread Zachary Ware
Zachary Ware added the comment: Your patch is certainly much simpler and more effective than mine; consider mine withdrawn. I didn't take the simple step of figuring out exactly where the problem was happening and was just trying to fix the issue without changing anything in the actual tests.

[issue17217] Fix test discovery for test_format.py on Windows

2013-02-20 Thread Ezio Melotti
Ezio Melotti added the comment: In order to fix test discovery on Windows the attached patch should be enough. There are two somewhat unrelated issues though: 1) moving replace_stdout to test.support (and possibly turn it into a context manager/decorator); 2) use unittest verbosity to control t

[issue17217] Fix test discovery for test_format.py on Windows

2013-02-16 Thread Zachary Ware
New submission from Zachary Ware: test_format is an interesting case in the ongoing test discovery conversion. It already uses unittest.main(), but still has test_main(), and discovery seems to work fine on Linux. On Windows, however, test_format and test_non_ascii both fail with a UnicodeEn