Fix test_tools hangs on Windows. Patch by Jeremy Kloth.

This commit is contained in:
Serhiy Storchaka 2013-02-04 16:55:59 +02:00
parent b3f194d109
commit db1ba4eeac

View file

@ -50,7 +50,7 @@ def pindent(self, source, *args):
(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