diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2013-02-04 14:55:59 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2013-02-04 14:55:59 (GMT) |
commit | db1ba4eeac9ac664847caa51189c123707ae1806 (patch) | |
tree | 8a45d17f6cbd656660b4b50b3a3d48022be336af | |
parent | b3f194d10951d5c23af885c6d55c45dfb0db0666 (diff) | |
download | cpython-db1ba4eeac9ac664847caa51189c123707ae1806.zip cpython-db1ba4eeac9ac664847caa51189c123707ae1806.tar.gz cpython-db1ba4eeac9ac664847caa51189c123707ae1806.tar.bz2 |
Fix test_tools hangs on Windows. Patch by Jeremy Kloth.
-rw-r--r-- | Lib/test/test_tools.py | 2 |
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 |