From: Antoine Pitrou Date: Tue, 20 Oct 2009 21:59:25 +0000 (+0000) Subject: Test wouldn't work in debug mode. X-Git-Tag: v2.7a1~295 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9bd246bba9410abca2d7ba9387d0b93bb6c9ae2c;p=python Test wouldn't work in debug mode. We probably need a function in test_support to handle this. --- diff --git a/Lib/test/test_threading.py b/Lib/test/test_threading.py index 6723d008c6..6e44a287b3 100644 --- a/Lib/test/test_threading.py +++ b/Lib/test/test_threading.py @@ -327,6 +327,7 @@ class ThreadTests(unittest.TestCase): stderr=subprocess.PIPE) stdout, stderr = p.communicate() self.assertEqual(stdout, "Woke up, sleep function is: \n") + stderr = re.sub(r"^\[\d+ refs\]", "", stderr, re.MULTILINE).strip() self.assertEqual(stderr, "")