From: Serhiy Storchaka Date: Mon, 4 Feb 2013 14:55:59 +0000 (+0200) Subject: Fix test_tools hangs on Windows. Patch by Jeremy Kloth. X-Git-Tag: v3.2.4rc1~144 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=db1ba4eeac9ac664847caa51189c123707ae1806;p=thirdparty%2FPython%2Fcpython.git Fix test_tools hangs on Windows. Patch by Jeremy Kloth. --- diff --git a/Lib/test/test_tools.py b/Lib/test/test_tools.py index 9403da71fb65..006220a3d4da 100644 --- a/Lib/test/test_tools.py +++ b/Lib/test/test_tools.py @@ -50,7 +50,7 @@ class PindentTests(unittest.TestCase): (sys.executable, self.script) + args, stdin=subprocess.PIPE, stdout=subprocess.PIPE, universal_newlines=True) as proc: - out, err = proc.communicate(source.encode()) + out, err = proc.communicate(source) self.assertIsNone(err) return out