From db1ba4eeac9ac664847caa51189c123707ae1806 Mon Sep 17 00:00:00 2001 From: Serhiy Storchaka Date: Mon, 4 Feb 2013 16:55:59 +0200 Subject: Fix test_tools hangs on Windows. Patch by Jeremy Kloth. --- Lib/test/test_tools.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/test/test_tools.py b/Lib/test/test_tools.py index 9403da7..006220a 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 -- cgit v0.12