Flush stderr after write.
stderr can be buffered under win32 when redirected to a file,
including stdout.
To run the tests, do:cd tests/python run-tests.pySee http://www.selenic.com/mercurial/wiki/index.cgi/WritingTests formore information on writing tests.