mirror of
https://github.com/python/cpython.git
synced 2025-07-28 21:55:21 +00:00
try to fix test_threading on the Windows bot
This commit is contained in:
parent
db3409cec9
commit
f5668f13c8
1 changed files with 2 additions and 1 deletions
|
@ -338,7 +338,8 @@ class ThreadJoinOnShutdown(unittest.TestCase):
|
||||||
import subprocess
|
import subprocess
|
||||||
p = subprocess.Popen([sys.executable, "-c", script], stdout=subprocess.PIPE)
|
p = subprocess.Popen([sys.executable, "-c", script], stdout=subprocess.PIPE)
|
||||||
rc = p.wait()
|
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.failIf(rc == 2, "interpreter was blocked")
|
||||||
self.failUnless(rc == 0, "Unexpected error")
|
self.failUnless(rc == 0, "Unexpected error")
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue