From 9bd246bba9410abca2d7ba9387d0b93bb6c9ae2c Mon Sep 17 00:00:00 2001 From: Antoine Pitrou Date: Tue, 20 Oct 2009 21:59:25 +0000 Subject: [PATCH] Test wouldn't work in debug mode. We probably need a function in test_support to handle this. --- Lib/test/test_threading.py | 1 + 1 file changed, 1 insertion(+) diff --git a/Lib/test/test_threading.py b/Lib/test/test_threading.py index 6723d008c67..6e44a287b34 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, "")