badserverext: explicitly flush each log write
authorMatt Harbison <matt_harbison@yahoo.com>
Sun, 16 Apr 2017 21:25:16 -0400
changeset 32021 08e46fcb8637
parent 32020 acc67cd7f508
child 32022 e5d7f99a3063
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.
tests/badserverext.py
--- 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')