]> granicus.if.org Git - python/commitdiff
fix 2/3 of test_threading
authorBenjamin Peterson <benjamin@python.org>
Thu, 17 Jul 2008 16:55:47 +0000 (16:55 +0000)
committerBenjamin Peterson <benjamin@python.org>
Thu, 17 Jul 2008 16:55:47 +0000 (16:55 +0000)
Lib/test/test_threading.py

index ed6130980179358ced5446e2b90aafd2f267e517..13581f770e500e584f0b671905556458c70f5294 100644 (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")