]> granicus.if.org Git - python/commitdiff
Fix Windows buildbot failure
authorAntoine Pitrou <solipsis@pitrou.net>
Fri, 23 Oct 2009 12:01:13 +0000 (12:01 +0000)
committerAntoine Pitrou <solipsis@pitrou.net>
Fri, 23 Oct 2009 12:01:13 +0000 (12:01 +0000)
Lib/test/test_threading.py

index 6e44a287b34ae01ce574fe4db5559b95810b8ead..71a88445245e07904e8c9334af736fdeb4ad0e3d 100644 (file)
@@ -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: <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()
         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.