let Windows bots pass on test_threading

This commit is contained in:
Benjamin Peterson 2008-08-23 21:25:16 +00:00
parent 8a8bfa0bc7
commit efbf6fc73e

View file

@ -235,7 +235,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")