From 5e476843ec8fc708033170a68a9c3bc425ecfb95 Mon Sep 17 00:00:00 2001 From: clowwindy Date: Mon, 12 Jan 2015 23:19:24 +0800 Subject: [PATCH] fix python3 --- tests/test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test.py b/tests/test.py index d213780..933027b 100755 --- a/tests/test.py +++ b/tests/test.py @@ -90,7 +90,6 @@ try: for fd in r: line = fd.readline() - sys.stderr.write(line) if not line: if stage == 2 and fd == p3.stdout: stage = 3 @@ -98,6 +97,7 @@ try: stage = 5 if bytes != str: line = str(line, 'utf8') + sys.stderr.write(line) if line.find('starting local') >= 0: local_ready = True if line.find('starting server') >= 0: