mirror of
https://github.com/python/cpython
synced 2024-09-22 03:18:13 +00:00
Fix test_tools hangs on Windows. Patch by Jeremy Kloth.
This commit is contained in:
parent
b3f194d109
commit
db1ba4eeac
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue