[issue6966] Ability to refer to arguments in TestCase.fail* methods

2009-09-22 Thread Johan Tufvesson
New submission from Johan Tufvesson j...@hms.se: In the unittest module, TestCase class: If one wants to provide a more descriptive fail message compared to the default, it is often valuable to be able to refer to the arguments evaluated by the fail*- (or assert*-) method. This can

[issue6966] Ability to refer to arguments in TestCase.fail* methods

2009-09-22 Thread Johan Tufvesson
Johan Tufvesson j...@hms.se added the comment: I admit that I had not seen the longMessage attribute. That is better than the present possibilities in 2.6, although not as configurable as my suggestion (but with better backwards compatibility). Personally I will be a user of the longMessage

[issue2674] unittest.TestProgram uses sys.exit()

2008-04-23 Thread Johan Tufvesson
New submission from Johan Tufvesson [EMAIL PROTECTED]: The class TestProgram (and its synonym main) in module unittest is (probably) meant to be an easy way to use the functionality of the module unittest. It is very surprising (and error-prone) that it uses sys.exit() with a status code instead