Mercurial > hg-stable
changeset 32021:08e46fcb8637
badserverext: explicitly flush each log write
No idea why, but without this, there was no content in the error logs that are
`cat`d in the test on Windows.
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Sun, 16 Apr 2017 21:25:16 -0400 |
parents | acc67cd7f508 |
children | e5d7f99a3063 |
files | tests/badserverext.py |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/badserverext.py Sun Apr 16 21:00:22 2017 -0400 +++ b/tests/badserverext.py Sun Apr 16 21:25:16 2017 -0400 @@ -111,6 +111,7 @@ object.__getattribute__(self, '_logfp').write(msg) object.__getattribute__(self, '_logfp').write('\n') + object.__getattribute__(self, '_logfp').flush() def read(self, size=-1): remaining = object.__getattribute__(self, '_closeafterrecvbytes')