From: Antoine Pitrou Date: Fri, 23 Oct 2009 12:01:13 +0000 (+0000) Subject: Fix Windows buildbot failure X-Git-Tag: v2.7a1~269 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b119ca9df4dd918c569c0831bae8ff2857d51d11;p=python Fix Windows buildbot failure --- diff --git a/Lib/test/test_threading.py b/Lib/test/test_threading.py index 6e44a287b3..71a8844524 100644 --- a/Lib/test/test_threading.py +++ b/Lib/test/test_threading.py @@ -326,12 +326,11 @@ class ThreadTests(unittest.TestCase): stdout=subprocess.PIPE, stderr=subprocess.PIPE) stdout, stderr = p.communicate() - self.assertEqual(stdout, "Woke up, sleep function is: \n") + self.assertEqual(stdout.strip(), + "Woke up, sleep function is: ") stderr = re.sub(r"^\[\d+ refs\]", "", stderr, re.MULTILINE).strip() self.assertEqual(stderr, "") - - def test_enumerate_after_join(self): # Try hard to trigger #1703448: a thread is still returned in # threading.enumerate() after it has been join()ed.