Skip to content

Commit a7f3d15

Browse files
author
benjamin.peterson
committed
try to fix test_threading on the Windows bot
git-svn-id: http://svn.python.org/projects/python/trunk@65059 6015fed2-1504-0410-9fe1-9d1591cc4771
1 parent a854b93 commit a7f3d15

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Lib/test/test_threading.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,8 @@ def joiningfunc(mainthread):
338338
import subprocess
339339
p = subprocess.Popen([sys.executable, "-c", script], stdout=subprocess.PIPE)
340340
rc = p.wait()
341-
self.assertEqual(p.stdout.read(), "end of main\nend of thread\n")
341+
data = p.stdout.read().replace('\r', '')
342+
self.assertEqual(data, "end of main\nend of thread\n")
342343
self.failIf(rc == 2, "interpreter was blocked")
343344
self.failUnless(rc == 0, "Unexpected error")
344345

0 commit comments

Comments
 (0)