Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit db1ba4e

Browse files
Fix test_tools hangs on Windows. Patch by Jeremy Kloth.
1 parent b3f194d commit db1ba4e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/test/test_tools.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def pindent(self, source, *args):
5050
(sys.executable, self.script) + args,
5151
stdin=subprocess.PIPE, stdout=subprocess.PIPE,
5252
universal_newlines=True) as proc:
53-
out, err = proc.communicate(source.encode())
53+
out, err = proc.communicate(source)
5454
self.assertIsNone(err)
5555
return out
5656

0 commit comments

Comments
 (0)