problems redirecting unittest output to sys.stdout
Achim Domma
achim.domma at syynx.de
Sat Apr 27 06:26:04 EDT 2002
"Alex Martelli" <aleax at aleax.it> wrote:
> > I want to redirect the output of a unittest to a textfile (on Windows).
> > The default stream is sys.stderr which can not be redirected on windows.
>
> Of course it can be -- depends on what Windows version you have. With
> NT's CMD.EXE (thus I believe also /2000 and /XP), 2>blah on the command
> line works fine.
yes, 2> works fine ! Thanks !
Achim
More information about the Python-list
mailing list