Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ad703dc

Browse files
committed
Merged revisions 65059 via svnmerge from
svn+ssh://[email protected]/python/trunk ........ r65059 | benjamin.peterson | 2008-07-17 07:57:22 -0500 (Thu, 17 Jul 2008) | 1 line try to fix test_threading on the Windows bot ........
1 parent 6f4f24f commit ad703dc

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
@@ -339,7 +339,8 @@ def joiningfunc(mainthread):
339339
import subprocess
340340
p = subprocess.Popen([sys.executable, "-c", script], stdout=subprocess.PIPE)
341341
rc = p.wait()
342-
self.assertEqual(p.stdout.read().decode(), "end of main\nend of thread\n")
342+
data = p.stdout.read().decode().replace('\r', '')
343+
self.assertEqual(data, "end of main\nend of thread\n")
343344
self.failIf(rc == 2, "interpreter was blocked")
344345
self.failUnless(rc == 0, "Unexpected error")
345346

0 commit comments

Comments
 (0)