]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix test_tools hangs on Windows. Patch by Jeremy Kloth.
authorSerhiy Storchaka <storchaka@gmail.com>
Mon, 4 Feb 2013 14:55:59 +0000 (16:55 +0200)
committerSerhiy Storchaka <storchaka@gmail.com>
Mon, 4 Feb 2013 14:55:59 +0000 (16:55 +0200)
Lib/test/test_tools.py

index 9403da71fb6533e2ae75a8dce474f1d14f8043e7..006220a3d4dafb2ac015c40ef7a2aa1a893b9bdb 100644 (file)
@@ -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