mirror of
https://github.com/python/cpython.git
synced 2026-01-06 15:32:22 +00:00
Fix test_tools hangs on Windows. Patch by Jeremy Kloth.
This commit is contained in:
parent
b3f194d109
commit
db1ba4eeac
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue