fix 2/3 of test_threading

This commit is contained in:
Benjamin Peterson 2008-07-17 16:55:47 +00:00
parent a851397ddc
commit 6f4f24fdc3
1 changed files with 1 additions and 1 deletions

View File

@ -339,7 +339,7 @@ class ThreadJoinOnShutdown(unittest.TestCase):
import subprocess
p = subprocess.Popen([sys.executable, "-c", script], stdout=subprocess.PIPE)
rc = p.wait()
self.assertEqual(p.stdout.read(), "end of main\nend of thread\n")
self.assertEqual(p.stdout.read().decode(), "end of main\nend of thread\n")
self.failIf(rc == 2, "interpreter was blocked")
self.failUnless(rc == 0, "Unexpected error")