Fix test_tools hangs on Windows. Patch by Jeremy Kloth.
This commit is contained in:
parent
b3f194d109
commit
db1ba4eeac
@ -50,7 +50,7 @@ class PindentTests(unittest.TestCase):
|
|||||||
(sys.executable, self.script) + args,
|
(sys.executable, self.script) + args,
|
||||||
stdin=subprocess.PIPE, stdout=subprocess.PIPE,
|
stdin=subprocess.PIPE, stdout=subprocess.PIPE,
|
||||||
universal_newlines=True) as proc:
|
universal_newlines=True) as proc:
|
||||||
out, err = proc.communicate(source.encode())
|
out, err = proc.communicate(source)
|
||||||
self.assertIsNone(err)
|
self.assertIsNone(err)
|
||||||
return out
|
return out
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user