Commit db1ba4ee authored by Serhiy Storchaka's avatar Serhiy Storchaka

Fix test_tools hangs on Windows. Patch by Jeremy Kloth.

parent b3f194d1
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment