mirror of
https://github.com/python/cpython.git
synced 2025-08-30 21:48:47 +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 @@ 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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue