[Python-checkins] r75624 - python/trunk/Lib/test/test_threading.py

antoine.pitrou python-checkins at python.org
Fri Oct 23 14:01:14 CEST 2009


Author: antoine.pitrou
Date: Fri Oct 23 14:01:13 2009
New Revision: 75624

Log:
Fix Windows buildbot failure



Modified:
   python/trunk/Lib/test/test_threading.py

Modified: python/trunk/Lib/test/test_threading.py
==============================================================================
--- python/trunk/Lib/test/test_threading.py	(original)
+++ python/trunk/Lib/test/test_threading.py	Fri Oct 23 14:01:13 2009
@@ -326,12 +326,11 @@
             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.


More information about the Python-checkins mailing list