mirror of https://github.com/python/cpython
fix 2/3 of test_threading
This commit is contained in:
parent
a851397ddc
commit
6f4f24fdc3
|
@ -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")
|
||||
|
||||
|
|
Loading…
Reference in New Issue