[issue16918] Fix test discovery for test_codecs.py

2013-01-10 Thread Zachary Ware
New submission from Zachary Ware: Here's the fix for test_codecs.py, I believe. I had a few headaches trying to get this patch created without changing some of the characters or adding a BOM to the file, and at one point the test was failing for no apparent reason. This version of the patch

[issue16918] Fix test discovery for test_codecs.py

2013-01-10 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- assignee: - ezio.melotti stage: - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16918 ___

[issue16918] Fix test discovery for test_codecs.py

2013-01-10 Thread Ezio Melotti
Ezio Melotti added the comment: FTR, the failure you saw while switching to unittest.main() seems to be caused by a broken test that wasn't run. Unittest test discovery simply revealed the problem -- I'm working on it. -- ___ Python tracker

[issue16918] Fix test discovery for test_codecs.py

2013-01-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset 11e7d0936fa2 by Ezio Melotti in branch '3.3': #16918: test_codecs now works with unittest test discovery. Patch by Zachary Ware. http://hg.python.org/cpython/rev/11e7d0936fa2 New changeset 02180599a99f by Ezio Melotti in branch 'default': #16918:

[issue16918] Fix test discovery for test_codecs.py

2013-01-10 Thread Ezio Melotti
Ezio Melotti added the comment: Fixed, thanks for the patch! Apparently the broken test was ported from Python 2 to Python 3 in 4747ef9640ae (back in the SVN days), but the name of the test class was not added to the list of tests in test_main. Without the test class in the list, the test was