summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2009-10-20 21:59:25 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2009-10-20 21:59:25 (GMT)
commit9bd246bba9410abca2d7ba9387d0b93bb6c9ae2c (patch)
tree8fd4639352986fc3c0910bed711ba6e9855dc559 /Lib/test
parenteb7c3776599cd4c8f90b2f8a320e95c312705c79 (diff)
downloadcpython-9bd246bba9410abca2d7ba9387d0b93bb6c9ae2c.zip
cpython-9bd246bba9410abca2d7ba9387d0b93bb6c9ae2c.tar.gz
cpython-9bd246bba9410abca2d7ba9387d0b93bb6c9ae2c.tar.bz2
Test wouldn't work in debug mode.
We probably need a function in test_support to handle this.
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/test_threading.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/test_threading.py b/Lib/test/test_threading.py
index 6723d00..6e44a28 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: <built-in function sleep>\n")
+ stderr = re.sub(r"^\[\d+ refs\]", "", stderr, re.MULTILINE).strip()
self.assertEqual(stderr, "")