Commits

Benjamin Peterson committed 78a29a0

fix 2/3 of test_threading

Comments (0)

Files changed (1)

Lib/test/test_threading.py

         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")