summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2013-02-04 14:55:59 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2013-02-04 14:55:59 (GMT)
commitdb1ba4eeac9ac664847caa51189c123707ae1806 (patch)
tree8a45d17f6cbd656660b4b50b3a3d48022be336af /Lib
parentb3f194d10951d5c23af885c6d55c45dfb0db0666 (diff)
downloadcpython-db1ba4eeac9ac664847caa51189c123707ae1806.zip
cpython-db1ba4eeac9ac664847caa51189c123707ae1806.tar.gz
cpython-db1ba4eeac9ac664847caa51189c123707ae1806.tar.bz2
Fix test_tools hangs on Windows. Patch by Jeremy Kloth.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_tools.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_tools.py b/Lib/test/test_tools.py
index 9403da7..006220a 100644
--- a/Lib/test/test_tools.py
+++ b/Lib/test/test_tools.py
@@ -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