[issue8454] unittest Module Problem with different Kinds of Invocation

2010-04-19 Thread Perbandt
New submission from Perbandt : I just figured out a problem with the Python module 'unittest.py', version 1.63. The function '__init__' behaves a bit strange in certain circumstances. It is called either directly from the command line or it is called when unit tests are to

[issue8454] unittest Module Problem with different Kinds of Invocation

2010-04-19 Thread Perbandt
Perbandt added the comment: Yes, the proposed fix would be an incompatible change. But my assumption is that in scenarios where main(...) is called programmatically the fix would correct an erroneous behavior. In these scenarios whatever is being passed as the first entry in the argv array