mirror of
https://github.com/python/cpython.git
synced 2025-07-30 22:54:16 +00:00
Fix Windows buildbot failure
This commit is contained in:
parent
dc0205296b
commit
b119ca9df4
1 changed files with 2 additions and 3 deletions
|
@ -326,12 +326,11 @@ class ThreadTests(unittest.TestCase):
|
||||||
stdout=subprocess.PIPE,
|
stdout=subprocess.PIPE,
|
||||||
stderr=subprocess.PIPE)
|
stderr=subprocess.PIPE)
|
||||||
stdout, stderr = p.communicate()
|
stdout, stderr = p.communicate()
|
||||||
self.assertEqual(stdout, "Woke up, sleep function is: <built-in function sleep>\n")
|
self.assertEqual(stdout.strip(),
|
||||||
|
"Woke up, sleep function is: <built-in function sleep>")
|
||||||
stderr = re.sub(r"^\[\d+ refs\]", "", stderr, re.MULTILINE).strip()
|
stderr = re.sub(r"^\[\d+ refs\]", "", stderr, re.MULTILINE).strip()
|
||||||
self.assertEqual(stderr, "")
|
self.assertEqual(stderr, "")
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
def test_enumerate_after_join(self):
|
def test_enumerate_after_join(self):
|
||||||
# Try hard to trigger #1703448: a thread is still returned in
|
# Try hard to trigger #1703448: a thread is still returned in
|
||||||
# threading.enumerate() after it has been join()ed.
|
# threading.enumerate() after it has been join()ed.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue