try to fix test_threading on the Windows bot

This commit is contained in:
Benjamin Peterson 2008-07-17 12:57:22 +00:00
parent db3409cec9
commit f5668f13c8

View file

@ -338,7 +338,8 @@ 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")
data = p.stdout.read().replace('\r', '')
self.assertEqual(data, "end of main\nend of thread\n")
self.failIf(rc == 2, "interpreter was blocked")
self.failUnless(rc == 0, "Unexpected error")