diff tests/badserverext.py @ 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 c85f19c66e8d
children 8065b4ab0ed7
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')