[issue21741] Convert most of the test suite to using unittest.main()

2015-04-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset 3aec776fc796 by Zachary Ware in branch 'default': Issue #21741: Update 147 test modules to use test discovery. https://hg.python.org/cpython/rev/3aec776fc796 -- ___ Python tracker rep...@bugs.python.org

[issue21741] Convert most of the test suite to using unittest.main()

2015-04-13 Thread Zachary Ware
Changes by Zachary Ware zachary.w...@gmail.com: -- resolution: - fixed stage: patch review - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21741 ___

[issue21741] Convert most of the test suite to using unittest.main()

2015-01-06 Thread Berker Peksag
Changes by Berker Peksag berker.pek...@gmail.com: -- nosy: +berker.peksag ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21741 ___ ___

[issue21741] Convert most of the test suite to using unittest.main()

2014-06-19 Thread Roundup Robot
Roundup Robot added the comment: New changeset 706fab0213db by Zachary Ware in branch 'default': Issue #21741: Add st_file_attributes to os.stat_result on Windows. http://hg.python.org/cpython/rev/706fab0213db -- nosy: +python-dev ___ Python tracker

[issue21741] Convert most of the test suite to using unittest.main()

2014-06-19 Thread Zachary Ware
Changes by Zachary Ware zachary.w...@gmail.com: -- Removed message: http://bugs.python.org/msg220987 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21741 ___

[issue21741] Convert most of the test suite to using unittest.main()

2014-06-19 Thread Zachary Ware
Zachary Ware added the comment: @Terry: This is part of the ongoing effort of issues #16748 and #10967 (and possibly others). My ultimate goal along those lines is to eradicate support.run_unittest, and this is a step in that direction. I think there's enough support here to skip python-dev

[issue21741] Convert most of the test suite to using unittest.main()

2014-06-19 Thread Raymond Hettinger
Raymond Hettinger added the comment: My ultimate goal along those lines is to eradicate support.run_unittest, and this is a step in that direction. I think there's enough support here to skip python-dev :). Not really. There is support here for using unittest.main() whereever it fits and

[issue21741] Convert most of the test suite to using unittest.main()

2014-06-19 Thread Zachary Ware
Zachary Ware added the comment: Raymond Hettinger added the comment: I think there's enough support here to skip python-dev :). Not really. There is support here for using unittest.main() whereever it fits and cleans-up the code. That is not the same as saying we can eliminate

[issue21741] Convert most of the test suite to using unittest.main()

2014-06-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I compared tests output with and without patch and noticed only one significant difference. ForkWait is imported in Lib/test/test_wait3.py, Lib/test/test_wait4.py and Lib/test/test_fork1.py and now it is executed 4 times. Either this class should be turned

[issue21741] Convert most of the test suite to using unittest.main()

2014-06-16 Thread Michael Foord
Michael Foord added the comment: I haven't reviewed the patch in detail, but I've had a scan through and it looks *great*. A quick and dirty check that it's correct is to compare the number of tests run before and after the patch - and if the numbers differ verifying that it's for good

[issue21741] Convert most of the test suite to using unittest.main()

2014-06-16 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- nosy: +serhiy.storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21741 ___ ___

[issue21741] Convert most of the test suite to using unittest.main()

2014-06-16 Thread R. David Murray
R. David Murray added the comment: +1 from me (after verification), which should probably go without saying since I'm the one that started this ball rolling by making regrtest work with unittest discovery :) I think the potential disruption to existing patches and any forward porting issues

[issue21741] Convert most of the test suite to using unittest.main()

2014-06-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Some abstract test classes now are included in testing: Lib/test/test_calendar.py: MonthCalendarTestCase Lib/test/test_csv.py: TestCsvBase Lib/test/test_funcattrs.py: FuncAttrsTest Lib/test/test_sys_setprofile.py: TestCaseBase Lib/test/test_telnetlib.py:

[issue21741] Convert most of the test suite to using unittest.main()

2014-06-16 Thread Michael Foord
Michael Foord added the comment: Those should be turned into mixins, or someone could implement issue 14534. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21741 ___

[issue21741] Convert most of the test suite to using unittest.main()

2014-06-15 Thread Raymond Hettinger
Raymond Hettinger added the comment: There are a couple things I really like about this idea: * In the past, we've had cases of TestXXX classes being omitted, so chunks of the test suite weren't being run. You patch will fix that and let test discovery just work. * The code is shorter, more

[issue21741] Convert most of the test suite to using unittest.main()

2014-06-13 Thread Zachary Ware
Zachary Ware added the comment: Here's a diff against 3.4 produced by the script. Warning: it's rather large. $ hg diff --stat [...] 162 files changed, 199 insertions(+), 942 deletions(-) -- keywords: +patch Added file: http://bugs.python.org/file35616/issue21741.diff

[issue21741] Convert most of the test suite to using unittest.main()

2014-06-13 Thread Terry J. Reedy
Terry J. Reedy added the comment: You might add a brief description of why this is good idea, or link to such a discussion. I am +1 on the idea, but a pydev discussion might be needed. How did you test the patch? I don't think that passing the same tests in non-verbose mode is good enough,

[issue21741] Convert most of the test suite to using unittest.main()

2014-06-12 Thread Zachary Ware
New submission from Zachary Ware: Attached is a quick-and-dirty script that converts a large chunk of the test suite away from support.run_unittest and test_main to unittest test discovery and unittest.main. Several files are marked as 'do not touch' due to various issues that the script