This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: unittest.main testRunner default argument changed from None
Type: behavior Stage:
Components: Library (Lib) Versions: Python 3.1, Python 3.2, Python 2.7, Python 2.6
process
Status: closed Resolution: accepted
Dependencies: Superseder:
Assigned To: michael.foord Nosy List: barry, michael.foord, tarek
Priority: normal Keywords: easy, patch

Created on 2009-06-02 14:38 by michael.foord, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
fix_unittest_main.patch michael.foord, 2009-06-02 17:46
Messages (4)
msg88747 - (view) Author: Michael Foord (michael.foord) * (Python committer) Date: 2009-06-02 14:38
In Python 2.6 the testRunner keyword argument to unittest.main
(TestProgram) changed from None to TextTestRunner.

This breaks test suites (like the setuptools tests) which pass in None
when not wanting to override the default.

This is easy to fix without breaking anything (but hard to test). I will
be fixing this and backporting to 2.6-maint unless there are objections.
msg88757 - (view) Author: Michael Foord (michael.foord) * (Python committer) Date: 2009-06-02 17:46
Patch attached.
msg88759 - (view) Author: Barry A. Warsaw (barry) * (Python committer) Date: 2009-06-02 18:04
Feel free to apply this to 2.6.
msg88760 - (view) Author: Michael Foord (michael.foord) * (Python committer) Date: 2009-06-02 18:23
Committed to trunk in revision 73151 and revision 73152.
History
Date User Action Args
2022-04-11 14:56:49adminsetgithub: 50427
2009-06-02 18:23:08michael.foordsetstatus: open -> closed

messages: + msg88760
2009-06-02 18:04:51barrysetresolution: accepted

messages: + msg88759
nosy: + barry
2009-06-02 17:46:23michael.foordsetkeywords: + patch
files: + fix_unittest_main.patch
messages: + msg88757
2009-06-02 14:41:06tareksetnosy: + tarek
2009-06-02 14:38:16michael.foordcreate