tests/tinyproxy.py
changeset 32906 23b07333a8b2
parent 31571 b2a41a826d71
child 32916 88c1d13b637b
--- a/tests/tinyproxy.py	Sun Jun 18 22:46:56 2017 +0900
+++ b/tests/tinyproxy.py	Sun Jun 18 21:31:53 2017 -0400
@@ -53,6 +53,8 @@
         self.log_message('"%s" %s %s%s',
                          self.requestline, str(code), str(size),
                          ''.join([' %s:%s' % h for h in sorted(xheaders)]))
+        # Flush for Windows, so output isn't lost on TerminateProcess()
+        sys.stderr.flush()
 
     def _connect_to(self, netloc, soc):
         i = netloc.find(':')