Test wouldn't work in debug mode.

We probably need a function in test_support to handle this.
This commit is contained in:
Antoine Pitrou 2009-10-20 21:59:25 +00:00
parent eb7c377659
commit 9bd246bba9
1 changed files with 1 additions and 0 deletions

View File

@ -327,6 +327,7 @@ class ThreadTests(unittest.TestCase):
stderr=subprocess.PIPE)
stdout, stderr = p.communicate()
self.assertEqual(stdout, "Woke up, sleep function is: <built-in function sleep>\n")
stderr = re.sub(r"^\[\d+ refs\]", "", stderr, re.MULTILINE).strip()
self.assertEqual(stderr, "")